Adding update notifications setting option

This commit is contained in:
Dan Paulat 2023-04-23 00:30:18 -05:00
parent 19f0ab9898
commit a609f14f1f
6 changed files with 38 additions and 8 deletions

View file

@ -506,9 +506,14 @@ void MainWindow::on_resourceTreeView_doubleClicked(const QModelIndex& index)
void MainWindowImpl::AsyncSetup()
{
auto& generalSettings = manager::SettingsManager::general_settings();
// Check for updates
scwx::util::async(
[this]() { updateManager_->CheckForUpdates(main::kVersionString_); });
if (generalSettings.update_notifications_enabled().GetValue())
{
scwx::util::async(
[this]() { updateManager_->CheckForUpdates(main::kVersionString_); });
}
}
void MainWindowImpl::ConfigureMapLayout()