summaryrefslogtreecommitdiff
path: root/ui/check_version.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:23:48 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:23:48 +0200
commitee1c8c5c25d25dfa42120125a8a45dc9831ee412 (patch)
tree67aa287157db954e0cadeee05b4aad331eb2ecf2 /ui/check_version.cpp
parent5.13 (diff)
downloadFreeFileSync-ee1c8c5c25d25dfa42120125a8a45dc9831ee412.tar.gz
FreeFileSync-ee1c8c5c25d25dfa42120125a8a45dc9831ee412.tar.bz2
FreeFileSync-ee1c8c5c25d25dfa42120125a8a45dc9831ee412.zip
5.14
Diffstat (limited to 'ui/check_version.cpp')
-rw-r--r--ui/check_version.cpp41
1 files changed, 21 insertions, 20 deletions
diff --git a/ui/check_version.cpp b/ui/check_version.cpp
index e3ed042d..f01239da 100644
--- a/ui/check_version.cpp
+++ b/ui/check_version.cpp
@@ -249,26 +249,27 @@ void zen::checkForUpdatePeriodically(wxWindow* parent, long& lastUpdateCheck)
{
if (lastUpdateCheck != -1)
{
- if (lastUpdateCheck == 0)
- {
- switch (showQuestionDlg(parent, ReturnQuestionDlg::BUTTON_YES | ReturnQuestionDlg::BUTTON_NO | ReturnQuestionDlg::BUTTON_CANCEL,
- _("Do you want FreeFileSync to automatically check for updates every week?") + L"\n" +
- _("(Requires an Internet connection!)")))
- {
- case ReturnQuestionDlg::BUTTON_YES:
- lastUpdateCheck = 123; //some old date (few seconds after 1970) different from 0 and -1
- checkForUpdatePeriodically(parent, lastUpdateCheck); //check for updates now
- break;
-
- case ReturnQuestionDlg::BUTTON_NO:
- lastUpdateCheck = -1; //don't check for updates anymore
- break;
-
- case ReturnQuestionDlg::BUTTON_CANCEL:
- break;
- }
- }
- else if (wxGetLocalTime() >= lastUpdateCheck + 7 * 24 * 3600) //check weekly
+ //if (lastUpdateCheck == 0)
+ //{
+ // switch (showQuestionDlg(parent, ReturnQuestionDlg::BUTTON_YES | ReturnQuestionDlg::BUTTON_NO | ReturnQuestionDlg::BUTTON_CANCEL,
+ // _("Do you want FreeFileSync to automatically check for updates every week?") + L"\n" +
+ // _("(Requires an Internet connection!)")))
+ // {
+ // case ReturnQuestionDlg::BUTTON_YES:
+ // lastUpdateCheck = 123; //some old date (few seconds after 1970) different from 0 and -1
+ // checkForUpdatePeriodically(parent, lastUpdateCheck); //check for updates now
+ // break;
+
+ // case ReturnQuestionDlg::BUTTON_NO:
+ // lastUpdateCheck = -1; //don't check for updates anymore
+ // break;
+
+ // case ReturnQuestionDlg::BUTTON_CANCEL:
+ // break;
+ // }
+ //}
+ //else
+ if (wxGetLocalTime() >= lastUpdateCheck + 7 * 24 * 3600) //check weekly
{
wxString onlineVersion;
switch (getOnlineVersion(onlineVersion))
bgstack15