예제 #1
0
        private void ToggleAutoUpdate()
        {
            JsonConfig.settings.disableAutoUpdate      ^= true;
            notifyIcon.ContextMenu.MenuItems[9].Checked = !JsonConfig.settings.disableAutoUpdate;

            UpdateChecker.TryCheckAuto();
            JsonConfig.SaveConfig();
        }
예제 #2
0
        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();
        }
예제 #4
0
        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();
        }
예제 #5
0
 private void OnWallpaperTimerTick(object sender, EventArgs e)
 {
     RunScheduler();
     UpdateChecker.TryCheckAuto();
 }