File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ public class ThirdwebManagerEditor : Editor
51
51
private Texture2D bannerImage ;
52
52
53
53
private static readonly string ExpandedStateKey = "ThirdwebManagerEditor_ExpandedState_4.7.11" ;
54
+ private static readonly string OptionalStateKey = "ThirdwebManagerEditor_OptionalState_4.7.11" ;
54
55
55
56
private void OnEnable ( )
56
57
{
@@ -135,11 +136,16 @@ private void OnEnable()
135
136
bannerImage = Resources . Load < Texture2D > ( "EditorBanner" ) ;
136
137
137
138
sectionExpanded = GetExpandedState ( ) ;
139
+
140
+ showGaslessOptionalFields = EditorPrefs . GetBool ( $ "{ OptionalStateKey } _showGaslessOptionalFields", false ) ;
141
+ showSmartWalletOptionalFields = EditorPrefs . GetBool ( $ "{ OptionalStateKey } _showSmartWalletOptionalFields", false ) ;
138
142
}
139
143
140
144
private void OnDisable ( )
141
145
{
142
146
SetExpandedState ( sectionExpanded ) ;
147
+ EditorPrefs . SetBool ( $ "{ OptionalStateKey } _showGaslessOptionalFields", showGaslessOptionalFields ) ;
148
+ EditorPrefs . SetBool ( $ "{ OptionalStateKey } _showSmartWalletOptionalFields", showSmartWalletOptionalFields ) ;
143
149
}
144
150
145
151
public override void OnInspectorGUI ( )
You can’t perform that action at this time.
0 commit comments