static void CheckImportFlags() { if (performingSetup) { performingSetup = false; //Logger.Log( "performing import, now is when we'd want to detect dependencies." ); Dependencies.RescanDictionary(); if (performingFirstRunSetup) { performingFirstRunSetup = false; //Logger.Log( "first time setup is complete, show window" ); SettingsWindow.Show(true, 0); } else { //Logger.Log( "import complete, show window" ); SettingsWindow.Show(true, 0); } EditorUtility.ClearProgressBar(); } else { // all done, no need to pop up the window automatically! //Logger.Log( "no activity, hide window" ); SettingsWindow.Hide(); } }
static void CheckImportFlags() { if (performingSetup) { performingSetup = false; Dependencies.RescanDictionary(); if (performingFirstRunSetup) { performingFirstRunSetup = false; GlobalPortalSettings.TimeInstalled = DateTime.UtcNow.Ticks; // first time setup is completed SettingsWindow.Show(true, SettingsWindow.SETUP); } else { // setup is completed SettingsWindow.Show(true, SettingsWindow.SETUP); } EditorUtility.ClearProgressBar(); } else { // all done, no need to pop up the window automatically! SettingsWindow.Hide(); } }