@@ -21,7 +21,7 @@ public void SetData(GithubRelease[] releases, Action<bool> continuationAction)
21
21
}
22
22
23
23
public void OnGUI ( )
24
- {
24
+ {
25
25
float padding = 20f ;
26
26
float extraPaddingBottom = 30f ;
27
27
GUILayout . BeginArea ( new Rect ( padding , padding , position . width - ( padding * 2f ) , ( position . height - ( padding * 2f ) ) - extraPaddingBottom ) ) ;
@@ -220,22 +220,22 @@ private string currentVersion
220
220
{
221
221
get
222
222
{
223
- return EditorPrefs . GetString ( " MLAPI_version", "None" ) ;
223
+ return EditorPrefs . GetString ( Application . productName + "/ MLAPI_version", "None" ) ;
224
224
}
225
225
set
226
226
{
227
- EditorPrefs . SetString ( " MLAPI_version", value ) ;
227
+ EditorPrefs . SetString ( Application . productName + "/ MLAPI_version", value ) ;
228
228
}
229
229
}
230
230
private long lastUpdated
231
231
{
232
232
get
233
233
{
234
- return Convert . ToInt64 ( EditorPrefs . GetString ( " MLAPI_lastUpdated", "0" ) ) ;
234
+ return Convert . ToInt64 ( EditorPrefs . GetString ( Application . productName + "/ MLAPI_lastUpdated", "0" ) ) ;
235
235
}
236
236
set
237
237
{
238
- EditorPrefs . SetString ( " MLAPI_lastUpdated", Convert . ToString ( value ) ) ;
238
+ EditorPrefs . SetString ( Application . productName + "/ MLAPI_lastUpdated", Convert . ToString ( value ) ) ;
239
239
}
240
240
}
241
241
@@ -362,8 +362,8 @@ private void OnGUI()
362
362
{
363
363
releases = new GithubRelease [ 0 ] ;
364
364
foldoutStatus = new bool [ 0 ] ;
365
- if ( EditorPrefs . HasKey ( " MLAPI_version") ) EditorPrefs . DeleteKey ( " MLAPI_version") ;
366
- if ( EditorPrefs . HasKey ( " MLAPI_lastUpdated") ) EditorPrefs . DeleteKey ( " MLAPI_lastUpdated") ;
365
+ if ( EditorPrefs . HasKey ( Application . productName + "/ MLAPI_version") ) EditorPrefs . DeleteKey ( Application . productName + "/ MLAPI_version") ;
366
+ if ( EditorPrefs . HasKey ( Application . productName + "/ MLAPI_lastUpdated") ) EditorPrefs . DeleteKey ( Application . productName + "/ MLAPI_lastUpdated") ;
367
367
}
368
368
369
369
GUILayout . EndArea ( ) ;
0 commit comments