Skip to content

Commit

Permalink
Revert asking for confirmation before downloading images
Browse files Browse the repository at this point in the history
  • Loading branch information
t1m0thyj committed Jul 5, 2018
1 parent 675a278 commit 033f181
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 23 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand Down
1 change: 0 additions & 1 deletion installer.iss
Original file line number Diff line number Diff line change
Expand Up @@ -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

20 changes: 1 addition & 19 deletions src/FormWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -147,7 +129,7 @@ public void DownloadImages()
downloadDialog = new ProgressDialog();
downloadDialog.FormClosed += OnDownloadDialogClosed;
downloadDialog.Show();

using (WebClient client = new WebClient())
{
client.DownloadProgressChanged += downloadDialog.OnDownloadProgressChanged;
Expand Down
2 changes: 0 additions & 2 deletions src/WallpaperChangeScheduler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,6 @@ public void ToggleDarkMode()

private void OnWallpaperTimerTick(object sender, EventArgs e)
{
wallpaperTimer.Stop();

RunScheduler();
}
}
Expand Down

0 comments on commit 033f181

Please sign in to comment.