@@ -21,7 +21,7 @@ public void SetData(GithubRelease[] releases, Action<bool> continuationAction)
2121 }
2222
2323 public void OnGUI ( )
24- {
24+ {
2525 float padding = 20f ;
2626 float extraPaddingBottom = 30f ;
2727 GUILayout . BeginArea ( new Rect ( padding , padding , position . width - ( padding * 2f ) , ( position . height - ( padding * 2f ) ) - extraPaddingBottom ) ) ;
@@ -220,22 +220,22 @@ private string currentVersion
220220 {
221221 get
222222 {
223- return EditorPrefs . GetString ( " MLAPI_version", "None" ) ;
223+ return EditorPrefs . GetString ( Application . productName + "/ MLAPI_version", "None" ) ;
224224 }
225225 set
226226 {
227- EditorPrefs . SetString ( " MLAPI_version", value ) ;
227+ EditorPrefs . SetString ( Application . productName + "/ MLAPI_version", value ) ;
228228 }
229229 }
230230 private long lastUpdated
231231 {
232232 get
233233 {
234- return Convert . ToInt64 ( EditorPrefs . GetString ( " MLAPI_lastUpdated", "0" ) ) ;
234+ return Convert . ToInt64 ( EditorPrefs . GetString ( Application . productName + "/ MLAPI_lastUpdated", "0" ) ) ;
235235 }
236236 set
237237 {
238- EditorPrefs . SetString ( " MLAPI_lastUpdated", Convert . ToString ( value ) ) ;
238+ EditorPrefs . SetString ( Application . productName + "/ MLAPI_lastUpdated", Convert . ToString ( value ) ) ;
239239 }
240240 }
241241
@@ -362,8 +362,8 @@ private void OnGUI()
362362 {
363363 releases = new GithubRelease [ 0 ] ;
364364 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") ;
367367 }
368368
369369 GUILayout . EndArea ( ) ;
0 commit comments