internal void Refresh(ApplicationLauncherButton button) { if (button == null) { return; } appLauncherButton = button; QuickHide.Log("Refresh the AppLauncher: " + AppRef, "QMods"); }
void RestoreAppScenes() { if (!isActive || isStored) { return; } appLauncherButton.VisibleInScenes = AppScenesSaved; QuickHide.Log("Restore the AppLauncher: " + AppRef, "QMods"); }
internal void SetFalse(bool force = false) { if (!isActive || isFalse) { return; } appLauncherButton.SetFalse(force); QuickHide.Log("SetFalse the AppLauncher: " + AppRef, "QMods"); }
private void StoreAppScenes() { if (!isActive || !CanBeHide || isHidden) { return; } SaveCurrentAppScenes(); appLauncherButton.VisibleInScenes = ApplicationLauncher.AppScenes.NEVER; QuickHide.Log("Store the AppLauncher: " + AppRef, "QMods"); }
internal void Toggle() { if (!isActive || !isEnabled) { return; } if (isTrue) { appLauncherButton.SetFalse(true); } else { appLauncherButton.SetTrue(true); } QuickHide.Log("Toggle the AppLauncher: " + AppRef, "QMods"); }
public QMods(ApplicationLauncherButton button) { appLauncherButton = button; AppRef = GetAppRef(appLauncherButton); ModName = GetModName(appLauncherButton); SaveCurrentAppScenes(); if (!QSettings.Instance.ModHasFirstConfig.Contains(ModName)) { CanBePin = true; CanBeHide = true; CanSetFalse = true; QSettings.Instance.ModHasFirstConfig.Add(ModName); QuickHide.Log("Config set to default for the mod: " + AppRef, "QMods"); } if (!isHidden && CanBeHide) { isHidden = QSettings.Instance.isHidden; } }