private void ToggleAutoUpdate() { JsonConfig.settings.disableAutoUpdate ^= true; notifyIcon.ContextMenu.MenuItems[9].Checked = !JsonConfig.settings.disableAutoUpdate; UpdateChecker.TryCheckAuto(); JsonConfig.SaveConfig(); }
private void HandleTimerEvent(bool updateLocation) { if (updateLocation && JsonConfig.settings.useWindowsLocation) { Task.Run(() => UwpLocation.UpdateGeoposition()); } RunScheduler(); UpdateChecker.TryCheckAuto(); }
private void OnWallpaperTimerTick(object sender, EventArgs e) { if (ThemeManager.currentTheme != null) { if (JsonConfig.settings.useWindowsLocation) { Task.Run(() => UwpLocation.UpdateGeoposition()); } RunScheduler(); } UpdateChecker.TryCheckAuto(); }
public void HandleTimerEvent(bool updateLocation) { if (JsonConfig.settings.fullScreenPause && fullScreenChecker.runningFullScreen) { fullScreenChecker.timerEventPending = true; return; } if (updateLocation && JsonConfig.settings.useWindowsLocation) { Task.Run(() => UwpLocation.UpdateGeoposition()); } RunScheduler(); UpdateChecker.TryCheckAuto(); }
private void OnWallpaperTimerTick(object sender, EventArgs e) { RunScheduler(); UpdateChecker.TryCheckAuto(); }