diff --git a/README.md b/README.md index ed0fcfc..f7e9ceb 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,9 @@ The first time you run WinDynamicDesktop, it will automatically download the mac You will also need to input your location when running the program for the first time. This location is not used for any purpose other than to determine the times of sunrise and sunset where you live. -After you enter your location, the program will minimize to your system tray and it will run in the background. Right-clicking on the system tray icon opens a menu with options to update the location, start WinDynamicDesktop when Windows boots, or exit the program. +After you enter your location, the program will minimize to your system tray and it will run in the background. Right-clicking on the system tray icon opens a menu with options to update the location, refresh the wallpaper manually if necessary, or exit the program. You can also enable dark mode or choose to start WinDynamicDesktop when Windows boots from this menu. + +If you want to run the app silently with no icon in the system tray, you can do this by editing the `settings.conf` file which is in the same folder as the EXE. Change the setting `"hideTrayIcon":false` to `"hideTrayIcon":true` (or add it if it doesn't exist), then restart the app. ## Why did you develop this? diff --git a/installer.iss b/installer.iss index 7eba273..a951016 100644 --- a/installer.iss +++ b/installer.iss @@ -48,5 +48,4 @@ Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Run"; ValueType: [Run] Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent -Filename: "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=H8ZZXM9ABRJFU"; Description: "Support with a donation"; Flags: shellexec postinstall unchecked diff --git a/src/FormWrapper.cs b/src/FormWrapper.cs index aa516a5..53d7de4 100644 --- a/src/FormWrapper.cs +++ b/src/FormWrapper.cs @@ -117,26 +117,8 @@ private void OnExitItemClick(object sender, EventArgs e) public void DownloadImages() { string imagesZipUri = JsonConfig.imageSettings.imagesZipUri; - bool imagesNotFound = false; if (imagesZipUri == null) - { - imagesNotFound = true; - } - else - { - DialogResult result = MessageBox.Show("WinDynamicDesktop needs to download images for " + - "the " + JsonConfig.imageSettings.themeName + " theme from " + imagesZipUri + - Environment.NewLine + Environment.NewLine + "Do you want to continue?", "Setup", - MessageBoxButtons.YesNo, MessageBoxIcon.Question); - - if (result != DialogResult.Yes) - { - imagesNotFound = true; - } - } - - if (imagesNotFound) { MessageBox.Show("Images folder not found. The program will quit now.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning); @@ -147,7 +129,7 @@ public void DownloadImages() downloadDialog = new ProgressDialog(); downloadDialog.FormClosed += OnDownloadDialogClosed; downloadDialog.Show(); - + using (WebClient client = new WebClient()) { client.DownloadProgressChanged += downloadDialog.OnDownloadProgressChanged; diff --git a/src/WallpaperChangeScheduler.cs b/src/WallpaperChangeScheduler.cs index 72b5205..8717922 100644 --- a/src/WallpaperChangeScheduler.cs +++ b/src/WallpaperChangeScheduler.cs @@ -189,8 +189,6 @@ public void ToggleDarkMode() private void OnWallpaperTimerTick(object sender, EventArgs e) { - wallpaperTimer.Stop(); - RunScheduler(); } }