Skip to content

Commit

Permalink
v1.12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Beelink committed Apr 18, 2020
1 parent ab601e3 commit 4d86ec7
Show file tree
Hide file tree
Showing 20 changed files with 21 additions and 7 deletions.
Binary file modified .vs/quick-picture-viewer/v16/.suo
Binary file not shown.
Binary file modified .vs/quick-picture-viewer/v16/Server/sqlite3/storage.ide
Binary file not shown.
Binary file modified .vs/quick-picture-viewer/v16/Server/sqlite3/storage.ide-shm
Binary file not shown.
Binary file modified .vs/quick-picture-viewer/v16/Server/sqlite3/storage.ide-wal
Binary file not shown.
8 changes: 4 additions & 4 deletions QuickPictureViewer-Setup/QuickPictureViewer-Setup.vdproj
Original file line number Diff line number Diff line change
Expand Up @@ -1056,15 +1056,15 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:Quick Picture Viewer"
"ProductCode" = "8:{4B06198C-6796-44DB-9E63-54429DD48BE1}"
"PackageCode" = "8:{3E2E0EDD-2EDF-4D3D-AE58-0D1D0D9EA146}"
"ProductCode" = "8:{A819C0C3-8EBB-4E23-BBD8-A7732F4709C9}"
"PackageCode" = "8:{44E9CA1A-91B0-4849-8211-0396A74352B8}"
"UpgradeCode" = "8:{D9871B4D-DF1B-418F-A7BF-D5F44A9FCFCE}"
"AspNetVersion" = "8:2.0.50727.0"
"RestartWWWService" = "11:FALSE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:FALSE"
"ProductVersion" = "8:1.12.1"
"ProductVersion" = "8:1.12.2"
"Manufacturer" = "8:Module Art"
"ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:"
Expand Down Expand Up @@ -2042,7 +2042,7 @@
{
"{5259A561-127C-4D43-A0A1-72F10C7B3BF8}:_4B597F9189B6419DBE3695587B370B9E"
{
"SourcePath" = "8:..\\quick-picture-viewer\\obj\\Debug\\quick-picture-viewer.exe"
"SourcePath" = "8:..\\quick-picture-viewer\\obj\\Release\\quick-picture-viewer.exe"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_259C1F6F99A84F81BA44246337DEBF66"
Expand Down
Binary file modified QuickPictureViewer-Setup/Release/QuickPictureViewer-Setup.msi
Binary file not shown.
16 changes: 15 additions & 1 deletion quick-picture-viewer/DownloadForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
using System.Net;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using Microsoft.Win32;

namespace quick_picture_viewer
{
Expand All @@ -19,7 +21,7 @@ public DownloadForm(string url, bool darkMode)
this.HandleCreated += new EventHandler(ThemeManager.formHandleCreated);
}

fileName = System.IO.Path.GetFileName(url);
fileName = Path.Combine(GetDownloadFolderPath(), System.IO.Path.GetFileName(url));

InitializeComponent();

Expand All @@ -40,6 +42,18 @@ public DownloadForm(string url, bool darkMode)
wc.DownloadFileAsync(new Uri(url), fileName);
}

private string GetDownloadFolderPath()
{
try
{
return Registry.GetValue(@"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders", "{374DE290-123F-4565-9164-39C4925E467B}", String.Empty).ToString();
}
catch
{
return "";
}
}

private void wc_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
{
progressBar1.Value = e.ProgressPercentage;
Expand Down
4 changes: 2 additions & 2 deletions quick-picture-viewer/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.12.1")]
[assembly: AssemblyFileVersion("1.12.1")]
[assembly: AssemblyVersion("1.12.2")]
[assembly: AssemblyFileVersion("1.12.2")]
[assembly: NeutralResourcesLanguage("en")]
Binary file modified quick-picture-viewer/bin/Debug/quick-picture-viewer.exe
Binary file not shown.
Binary file modified quick-picture-viewer/bin/Debug/quick-picture-viewer.pdb
Binary file not shown.
Binary file not shown.
Binary file modified quick-picture-viewer/bin/Release/quick-picture-viewer.exe
Binary file not shown.
Binary file modified quick-picture-viewer/bin/Release/quick-picture-viewer.pdb
Binary file not shown.
Binary file modified quick-picture-viewer/obj/Debug/quick-picture-viewer.exe
Binary file not shown.
Binary file modified quick-picture-viewer/obj/Debug/quick-picture-viewer.pdb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified quick-picture-viewer/obj/Release/quick-picture-viewer.exe
Binary file not shown.
Binary file modified quick-picture-viewer/obj/Release/quick-picture-viewer.pdb
Binary file not shown.

0 comments on commit 4d86ec7

Please sign in to comment.