Skip to content

Commit

Permalink
* Re-enable update disabling logic.
Browse files Browse the repository at this point in the history
I don't remember why I disabled it, but it seems to work.
Fixes #114.
  • Loading branch information
iProgramMC committed Jul 11, 2024
1 parent 54b8973 commit eb63b2d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/discord/LocalSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,5 @@ bool LocalSettings::CheckTrustedDomain(const std::string& url)

void LocalSettings::StopUpdateCheckTemporarily()
{
// TODO:
// m_remindUpdatesOn = time(NULL) + time_t(72LL * 60 * 60);
m_remindUpdatesOn = time(NULL) + time_t(72LL * 60 * 60);
}
2 changes: 1 addition & 1 deletion src/discord/LocalSettings.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class LocalSettings
m_discordCdn = str;
}
void SetCheckUpdates(bool b) {
m_bCheckUpdates = true;
m_bCheckUpdates = b;
m_bAskToCheckUpdates = false;
}
bool CheckUpdates() const {
Expand Down
6 changes: 4 additions & 2 deletions src/windows/Frontend_Win32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,10 @@ void Frontend_Win32::OnUpdateAvailable(const std::string& url, const std::string

DownloadFileDialog(g_Hwnd, url, url.substr(idxsave));
}

GetLocalSettings()->StopUpdateCheckTemporarily();
else
{
GetLocalSettings()->StopUpdateCheckTemporarily();
}
}

void Frontend_Win32::OnFailedToSendMessage(Snowflake channel, Snowflake message)
Expand Down

0 comments on commit eb63b2d

Please sign in to comment.