Пример #1
0
 internal void Refresh(ApplicationLauncherButton button)
 {
     if (button == null)
     {
         return;
     }
     appLauncherButton = button;
     QuickHide.Log("Refresh the AppLauncher: " + AppRef, "QMods");
 }
Пример #2
0
 void RestoreAppScenes()
 {
     if (!isActive || isStored)
     {
         return;
     }
     appLauncherButton.VisibleInScenes = AppScenesSaved;
     QuickHide.Log("Restore the AppLauncher: " + AppRef, "QMods");
 }
Пример #3
0
 internal void SetFalse(bool force = false)
 {
     if (!isActive || isFalse)
     {
         return;
     }
     appLauncherButton.SetFalse(force);
     QuickHide.Log("SetFalse the AppLauncher: " + AppRef, "QMods");
 }
Пример #4
0
 private void StoreAppScenes()
 {
     if (!isActive || !CanBeHide || isHidden)
     {
         return;
     }
     SaveCurrentAppScenes();
     appLauncherButton.VisibleInScenes = ApplicationLauncher.AppScenes.NEVER;
     QuickHide.Log("Store the AppLauncher: " + AppRef, "QMods");
 }
Пример #5
0
 internal void Toggle()
 {
     if (!isActive || !isEnabled)
     {
         return;
     }
     if (isTrue)
     {
         appLauncherButton.SetFalse(true);
     }
     else
     {
         appLauncherButton.SetTrue(true);
     }
     QuickHide.Log("Toggle the AppLauncher: " + AppRef, "QMods");
 }
Пример #6
0
 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;
     }
 }