mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 17:30:05 +00:00
Adding update notifications setting option
This commit is contained in:
parent
19f0ab9898
commit
a609f14f1f
6 changed files with 38 additions and 8 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue