aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/splash_overlay.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/ui/qt/splash_overlay.cpp b/ui/qt/splash_overlay.cpp
index 00521cd27e..d9e4091c5a 100644
--- a/ui/qt/splash_overlay.cpp
+++ b/ui/qt/splash_overlay.cpp
@@ -124,6 +124,11 @@ void SplashOverlay::splashUpdate(register_action_e action, const char *message)
ThrottleThread::msleep(10);
#endif
+ if (last_action_ == action && (elapsed_timer_.elapsed() < info_update_freq_)) {
+ // Nothing to update yet
+ return;
+ }
+
if (last_action_ != action) {
register_cur_++;
}
@@ -179,10 +184,8 @@ void SplashOverlay::splashUpdate(register_action_e action, const char *message)
so_ui_->progressBar->setValue(register_cur_);
- if (elapsed_timer_.elapsed() > info_update_freq_) {
- wsApp->processEvents(QEventLoop::ExcludeUserInputEvents | QEventLoop::ExcludeSocketNotifiers, 1);
- elapsed_timer_.restart();
- }
+ wsApp->processEvents(QEventLoop::ExcludeUserInputEvents | QEventLoop::ExcludeSocketNotifiers, 1);
+ elapsed_timer_.restart();
}
/*