summaryrefslogtreecommitdiff
path: root/ui/check_version.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:23:19 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:23:19 +0200
commit0887aee8c54d0ed51bb2031431e2bcdafebb4c6e (patch)
tree69537ceb9787bb25ac363cc4e6cdaf0804d78363 /ui/check_version.cpp
parent5.12 (diff)
downloadFreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.tar.gz
FreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.tar.bz2
FreeFileSync-0887aee8c54d0ed51bb2031431e2bcdafebb4c6e.zip
5.13
Diffstat (limited to 'ui/check_version.cpp')
-rw-r--r--ui/check_version.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/ui/check_version.cpp b/ui/check_version.cpp
index 922708c7..e3ed042d 100644
--- a/ui/check_version.cpp
+++ b/ui/check_version.cpp
@@ -8,6 +8,7 @@
#include <memory>
#include <zen/string_tools.h>
#include <zen/i18n.h>
+#include <zen/utf.h>
#include <wx/msgdlg.h>
#include <wx/protocol/http.h>
#include <wx/sstream.h>
@@ -15,7 +16,7 @@
#include <wx/timer.h>
#include "msg_popup.h"
#include "../version/version.h"
-#include "../lib/ffs_paths.h"
+//#include "../lib/ffs_paths.h"
#include <zen/scope_guard.h>
#ifdef FFS_WIN
@@ -150,7 +151,7 @@ GetVerResult getOnlineVersion(wxString& version) //empty string on error;
version = utfCvrtTo<wxString>(&output[0]);
return GET_VER_SUCCESS;
-#else
+#elif defined FFS_LINUX || defined FFS_MAC
wxWindowDisabler dummy;
auto getStringFromUrl = [](const wxString& server, const wxString& page, int timeout, wxString* output) -> bool //true on successful connection
@@ -246,11 +247,6 @@ void zen::checkForUpdateNow(wxWindow* parent)
void zen::checkForUpdatePeriodically(wxWindow* parent, long& lastUpdateCheck)
{
-#ifdef FFS_LINUX
- if (!zen::isPortableVersion()) //don't check for updates in locally installed version -> handled by system updater
- return;
-#endif
-
if (lastUpdateCheck != -1)
{
if (lastUpdateCheck == 0)
bgstack15