ui: Don't reference Updater if it's been disabled

Merges #446
This commit is contained in:
tytan652 2021-02-02 21:48:17 +01:00 committed by Michael Fabian 'Xaymar' Dirks
parent a7eac490d5
commit 6ccac3331a

View file

@ -80,7 +80,11 @@ streamfx::ui::handler::handler()
_about_action(), _about_dialog(),
_translator(), _updater()
_translator()
#ifdef ENABLE_UPDATER
,
_updater()
#endif
{
obs_frontend_add_event_callback(frontend_event_handler, this);
}
@ -169,7 +173,10 @@ void streamfx::ui::handler::on_obs_loaded()
}
// Let the Updater start its work.
#ifdef ENABLE_UPDATER
this->_updater->obs_ready();
#endif
}
void streamfx::ui::handler::on_obs_exit()