Skip to content

Commit

Permalink
* Fix bad update check logic
Browse files Browse the repository at this point in the history
  • Loading branch information
iProgramMC committed Jul 11, 2024
1 parent eb63b2d commit 7d48e52
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/discord/LocalSettings.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ class LocalSettings

return time(NULL) >= m_remindUpdatesOn;
}
bool CheckUpdatesOption() const {
return m_bCheckUpdates;
}
bool AskToCheckUpdates() const {
return m_bAskToCheckUpdates;
}
Expand Down
2 changes: 1 addition & 1 deletion src/windows/OptionsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ void WINAPI OnChildDialogInit(HWND hwndDlg)
SetDlgItemText(hwndDlg, IDC_EDIT_DISCORDCDN, tstrCDN);

CheckDlgButton(hwndDlg, IDC_ENABLE_TLS_CHECKS, GetLocalSettings()->EnableTLSVerification() ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(hwndDlg, IDC_CHECK_UPDATES, GetLocalSettings()->CheckUpdates() ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(hwndDlg, IDC_CHECK_UPDATES, GetLocalSettings()->CheckUpdatesOption() ? BST_CHECKED : BST_UNCHECKED);
CheckDlgButton(hwndDlg, IDC_TOGGLE_XSUPERPROPS, GetLocalSettings()->AddExtraHeaders() ? BST_CHECKED : BST_UNCHECKED);

free(tstrAPI);
Expand Down

0 comments on commit 7d48e52

Please sign in to comment.