summaryrefslogtreecommitdiff
path: root/ui/guiStatusHandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/guiStatusHandler.cpp')
-rw-r--r--ui/guiStatusHandler.cpp16
1 files changed, 13 insertions, 3 deletions
diff --git a/ui/guiStatusHandler.cpp b/ui/guiStatusHandler.cpp
index 0cd32383..3d91fbe7 100644
--- a/ui/guiStatusHandler.cpp
+++ b/ui/guiStatusHandler.cpp
@@ -94,9 +94,13 @@ void CompareStatusHandler::initNewProcess(int objectsTotal, wxLongLong dataTotal
case StatusHandler::PROCESS_SCANNING:
break;
case StatusHandler::PROCESS_COMPARING_CONTENT:
+ {
+ wxWindowUpdateLocker dummy(mainDialog);
mainDialog->compareStatus->switchToCompareBytewise(objectsTotal, dataTotal);
- mainDialog->Layout();
- break;
+ mainDialog->Layout(); //show progress bar...
+ mainDialog->Refresh(); //remove distortion...
+ }
+ break;
case StatusHandler::PROCESS_SYNCHRONIZING:
case StatusHandler::PROCESS_NONE:
assert(false);
@@ -241,7 +245,7 @@ SyncStatusHandler::~SyncStatusHandler()
if (totalErrors > 0)
{
wxString header(_("Warning: Synchronization failed for %x item(s):"));
- header.Replace(wxT("%x"), FreeFileSync::numberToWxString(totalErrors, true), false);
+ header.Replace(wxT("%x"), FreeFileSync::numberToStringSep(totalErrors), false);
finalMessage += header + wxT("\n\n");
}
@@ -374,6 +378,12 @@ void SyncStatusHandler::reportWarning(const wxString& warningMessage, bool& warn
}
+void SyncStatusHandler::reportInfo(const wxString& infoMessage)
+{
+ errorLog.logInfo(infoMessage);
+}
+
+
void SyncStatusHandler::forceUiRefresh()
{
syncStatusFrame.updateStatusDialogNow();
bgstack15