Skip to content

Commit

Permalink
Update OnlineUpdater.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidXanatos committed Dec 3, 2023
1 parent 0ab9c47 commit 0081abf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SandboxiePlus/SandMan/OnlineUpdater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,7 @@ void COnlineUpdater::OnUpdateData(const QVariantMap& Data, const QVariantMap& Pa
}

bool bNothing = true;
bool bAuto = m_CheckMode != eManual;

if (HandleUserMessage(Data))
bNothing = false;
Expand All @@ -432,7 +433,7 @@ void COnlineUpdater::OnUpdateData(const QVariantMap& Data, const QVariantMap& Pa
bNothing = false;
}

if (m_CheckMode != eManual) {
if (bAuto) {
int UpdateInterval = theConf->GetInt("Options/UpdateInterval", UPDATE_INTERVAL); // in seconds
theConf->SetValue("Options/NextCheckForUpdates", QDateTime::currentDateTime().addSecs(UpdateInterval).toSecsSinceEpoch());
}
Expand Down

0 comments on commit 0081abf

Please sign in to comment.