Example #1
0
 public void HandleMonitorJobs(bool restore = false)
 {
     if (multimonitorSwitchEnabled)
     {
         if (restore)
         {
             UpdateStatus("Switching to multiple monitor mode...");
             new Task(() => { launcherApi.SwitchMonitorMode(true); }).Start();
         }
         else
         {
             UpdateStatus("Saving current monitor config to disk...");
             new Task(() => { launcherApi.LoadMonitorInfo(); }).Start();
         }
     }
     else
     {
         if (restore)
         {
             HandleMinerJobs(restore);
         }
         else
         {
             HandleScriptJobs(restore);
         }
     }
 }
Example #2
0
 public void HandleMonitorJobs(bool restore = false)
 {
     // We will always be doing monitor jobs now as we are going to set the Gamestream resolution...
     if (restore)
     {
         UpdateStatus(multimonitorSwitchEnabled ? "Switching to multiple monitor mode and restoring desktop resolution..." : "Restoring desktop resolution...");
         new Task(() => { launcherApi.SwitchMonitorMode(true); }).Start();
     }
     else
     {
         UpdateStatus("Saving current monitor config to disk...");
         new Task(() => { launcherApi.LoadMonitorInfo(); }).Start();
     }
 }