From 6ed7524c1b1274f550be9176bcb89f3b165f2627 Mon Sep 17 00:00:00 2001 From: Pete Batard Date: Mon, 26 Jul 2021 17:19:45 +0100 Subject: [PATCH] [ui] fix download status message remaining indefinitely * Closes #1727 --- res/appstore/Package.appxmanifest | 2 +- src/net.c | 4 ++-- src/rufus.rc | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/res/appstore/Package.appxmanifest b/res/appstore/Package.appxmanifest index e5c8dd76..7da5e7ed 100644 --- a/res/appstore/Package.appxmanifest +++ b/res/appstore/Package.appxmanifest @@ -11,7 +11,7 @@ + Version="3.15.1803.0" /> Rufus diff --git a/src/net.c b/src/net.c index 80e849ea..900e85b5 100644 --- a/src/net.c +++ b/src/net.c @@ -363,7 +363,7 @@ uint64_t DownloadToFileOrBuffer(const char* url, const char* file, BYTE** buffer short_name = (file != NULL) ? PathFindFileNameU(file) : PathFindFileNameU(url); if (hProgressDialog != NULL) { - PrintInfo(0, MSG_085, short_name); + PrintInfo(5000, MSG_085, short_name); uprintf("Downloading %s", url); } @@ -422,7 +422,7 @@ uint64_t DownloadToFileOrBuffer(const char* url, const char* file, BYTE** buffer static_sprintf(msg, "(%s) %s", SizeToHumanReadable(total_size, FALSE, FALSE), GetShortName(url)); else static_sprintf(msg, "%s (%s)", GetShortName(url), SizeToHumanReadable(total_size, FALSE, FALSE)); - PrintStatus(0, MSG_085, msg); + PrintStatus(5000, MSG_085, msg); } if (file != NULL) { diff --git a/src/rufus.rc b/src/rufus.rc index da1c451d..71c7bbea 100644 --- a/src/rufus.rc +++ b/src/rufus.rc @@ -33,7 +33,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL IDD_DIALOG DIALOGEX 12, 12, 232, 326 STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU EXSTYLE WS_EX_ACCEPTFILES -CAPTION "Rufus 3.15.1802" +CAPTION "Rufus 3.15.1803" FONT 9, "Segoe UI Symbol", 400, 0, 0x0 BEGIN LTEXT "Drive Properties",IDS_DRIVE_PROPERTIES_TXT,8,6,53,12,NOT WS_GROUP @@ -395,8 +395,8 @@ END // VS_VERSION_INFO VERSIONINFO - FILEVERSION 3,15,1802,0 - PRODUCTVERSION 3,15,1802,0 + FILEVERSION 3,15,1803,0 + PRODUCTVERSION 3,15,1803,0 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L @@ -414,13 +414,13 @@ BEGIN VALUE "Comments", "https://rufus.ie" VALUE "CompanyName", "Akeo Consulting" VALUE "FileDescription", "Rufus" - VALUE "FileVersion", "3.15.1802" + VALUE "FileVersion", "3.15.1803" VALUE "InternalName", "Rufus" VALUE "LegalCopyright", "© 2011-2021 Pete Batard (GPL v3)" VALUE "LegalTrademarks", "https://www.gnu.org/licenses/gpl-3.0.html" VALUE "OriginalFilename", "rufus-3.15.exe" VALUE "ProductName", "Rufus" - VALUE "ProductVersion", "3.15.1802" + VALUE "ProductVersion", "3.15.1803" END END BLOCK "VarFileInfo"