diff --git a/source/ui/ui-updater.cpp b/source/ui/ui-updater.cpp index 7f3151d..0ab0e85 100644 --- a/source/ui/ui-updater.cpp +++ b/source/ui/ui-updater.cpp @@ -176,14 +176,6 @@ streamfx::ui::updater::updater(QMenu* menu) std::placeholders::_1, std::placeholders::_2)); _updater->events.refreshed.add( std::bind(&streamfx::ui::updater::on_updater_refreshed, this, std::placeholders::_1)); - if (_updater->automation()) { - if (_updater->gdpr()) { - _updater->refresh(); - } else { - create_gdpr_box(); - _gdpr->exec(); - } - } // Sync with updater information. emit autoupdate_changed(_updater->automation()); @@ -213,6 +205,18 @@ void streamfx::ui::updater::on_updater_refreshed(streamfx::updater&) emit update_detected(); } +void streamfx::ui::updater::obs_ready() +{ + if (_updater->automation()) { + if (_updater->gdpr()) { + _updater->refresh(); + } else { + create_gdpr_box(); + _gdpr->exec(); + } + } +} + void streamfx::ui::updater::on_channel_changed(streamfx::update_channel channel) { bool is_stable = channel == streamfx::update_channel::RELEASE; diff --git a/source/ui/ui-updater.hpp b/source/ui/ui-updater.hpp index eeacdc8..77cefb3 100644 --- a/source/ui/ui-updater.hpp +++ b/source/ui/ui-updater.hpp @@ -90,6 +90,8 @@ namespace streamfx::ui { void on_updater_channel_changed(streamfx::updater&, streamfx::update_channel); void on_updater_refreshed(streamfx::updater&); + void obs_ready(); + signals: ; // Needed by some linters. diff --git a/source/ui/ui.cpp b/source/ui/ui.cpp index 838296e..93ba756 100644 --- a/source/ui/ui.cpp +++ b/source/ui/ui.cpp @@ -156,6 +156,9 @@ void streamfx::ui::handler::on_obs_loaded() _about_dialog->show(); have_shown_about_streamfx(true); } + + // Let the Updater start its work. + this->_updater->obs_ready(); } void streamfx::ui::handler::on_action_report_issue(bool)