public static bool CheckAPIKey() { bool res = true; string key = GetApiKey(); if (IsEnabled) { if (key == null || key.Equals("")) { if (!Window.IsFocused()) { if (EditorUtility.DisplayDialog("WakaTime API Key required", "You need to insert your API Key so as tu use this Plugin", "Insert API Key", "Disable Wakatime")) { Window.GetWindow().Show(); Window.GetWindow().Focus(); } else { IsEnabled = false; } } res = false; } } else { res = false; } return(res); }