Skip to content

Commit 033f181

Browse files
committed
Revert asking for confirmation before downloading images
1 parent 675a278 commit 033f181

File tree

4 files changed

+4
-23
lines changed

4 files changed

+4
-23
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ The first time you run WinDynamicDesktop, it will automatically download the mac
99

1010
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.
1111

12-
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.
12+
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.
13+
14+
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.
1315

1416
## Why did you develop this?
1517

installer.iss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,4 @@ Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Run"; ValueType:
4848

4949
[Run]
5050
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
51-
Filename: "https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=H8ZZXM9ABRJFU"; Description: "Support with a donation"; Flags: shellexec postinstall unchecked
5251

src/FormWrapper.cs

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -117,26 +117,8 @@ private void OnExitItemClick(object sender, EventArgs e)
117117
public void DownloadImages()
118118
{
119119
string imagesZipUri = JsonConfig.imageSettings.imagesZipUri;
120-
bool imagesNotFound = false;
121120

122121
if (imagesZipUri == null)
123-
{
124-
imagesNotFound = true;
125-
}
126-
else
127-
{
128-
DialogResult result = MessageBox.Show("WinDynamicDesktop needs to download images for " +
129-
"the " + JsonConfig.imageSettings.themeName + " theme from " + imagesZipUri +
130-
Environment.NewLine + Environment.NewLine + "Do you want to continue?", "Setup",
131-
MessageBoxButtons.YesNo, MessageBoxIcon.Question);
132-
133-
if (result != DialogResult.Yes)
134-
{
135-
imagesNotFound = true;
136-
}
137-
}
138-
139-
if (imagesNotFound)
140122
{
141123
MessageBox.Show("Images folder not found. The program will quit now.", "Error",
142124
MessageBoxButtons.OK, MessageBoxIcon.Warning);
@@ -147,7 +129,7 @@ public void DownloadImages()
147129
downloadDialog = new ProgressDialog();
148130
downloadDialog.FormClosed += OnDownloadDialogClosed;
149131
downloadDialog.Show();
150-
132+
151133
using (WebClient client = new WebClient())
152134
{
153135
client.DownloadProgressChanged += downloadDialog.OnDownloadProgressChanged;

src/WallpaperChangeScheduler.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,6 @@ public void ToggleDarkMode()
189189

190190
private void OnWallpaperTimerTick(object sender, EventArgs e)
191191
{
192-
wallpaperTimer.Stop();
193-
194192
RunScheduler();
195193
}
196194
}

0 commit comments

Comments
 (0)