forked from mia/Aegisub
Fix errors in update checker resulting from trying to use the wrong option type
Originally committed to SVN as r5805.
This commit is contained in:
parent
dedccc1f58
commit
ccebd521c6
1 changed files with 2 additions and 2 deletions
|
@ -503,7 +503,7 @@ VersionCheckerResultDialog::VersionCheckerResultDialog(const wxString &main_text
|
||||||
}
|
}
|
||||||
|
|
||||||
automatic_check_checkbox = new wxCheckBox(this, -1, _("Auto Check for Updates"));
|
automatic_check_checkbox = new wxCheckBox(this, -1, _("Auto Check for Updates"));
|
||||||
automatic_check_checkbox->SetValue(!!OPT_GET("App/Auto/Check For Updates")->GetInt());
|
automatic_check_checkbox->SetValue(OPT_GET("App/Auto/Check For Updates")->GetBool());
|
||||||
|
|
||||||
wxButton *remind_later_button = 0;
|
wxButton *remind_later_button = 0;
|
||||||
if (updates.size() > 0)
|
if (updates.size() > 0)
|
||||||
|
@ -549,7 +549,7 @@ void VersionCheckerResultDialog::OnRemindMeLater(wxCommandEvent &evt)
|
||||||
|
|
||||||
void VersionCheckerResultDialog::OnClose(wxCloseEvent &evt)
|
void VersionCheckerResultDialog::OnClose(wxCloseEvent &evt)
|
||||||
{
|
{
|
||||||
OPT_SET("App/Auto/Check For Updates")->SetInt(automatic_check_checkbox->GetValue()?1:0);
|
OPT_SET("App/Auto/Check For Updates")->SetBool(automatic_check_checkbox->GetValue());
|
||||||
Destroy();
|
Destroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue