File FreeFileSync-disable-in-app-updates.patch of Package FreeFileSync

Index: FreeFileSync-13.6/FreeFileSync/Source/ui/gui_generated.cpp
===================================================================
--- FreeFileSync-13.6.orig/FreeFileSync/Source/ui/gui_generated.cpp
+++ FreeFileSync-13.6/FreeFileSync/Source/ui/gui_generated.cpp
@@ -108,10 +108,10 @@ MainDialogGenerated::MainDialogGenerated
     m_menuItemHelp = new wxMenuItem( m_menuHelp, wxID_HELP, wxString( _("&View help") ) + wxT('\t') + wxT("F1"), wxEmptyString, wxITEM_NORMAL );
     m_menuHelp->Append( m_menuItemHelp );
 
-    m_menuHelp->AppendSeparator();
+    //m_menuHelp->AppendSeparator();
 
     m_menuItemCheckVersionNow = new wxMenuItem( m_menuHelp, wxID_ANY, wxString( _("&Check for updates now") ), wxEmptyString, wxITEM_NORMAL );
-    m_menuHelp->Append( m_menuItemCheckVersionNow );
+    //m_menuHelp->Append( m_menuItemCheckVersionNow );
 
     m_menuHelp->AppendSeparator();
 
Index: FreeFileSync-13.6/FreeFileSync/Source/ui/main_dlg.cpp
===================================================================
--- FreeFileSync-13.6.orig/FreeFileSync/Source/ui/main_dlg.cpp
+++ FreeFileSync-13.6/FreeFileSync/Source/ui/main_dlg.cpp
@@ -1118,7 +1118,7 @@ imgFileManagerSmall_([]
     updateGui();
 
     //register regular check for update on next idle event
-    Bind(wxEVT_IDLE, &MainDialog::onStartupUpdateCheck, this);
+    //Bind(wxEVT_IDLE, &MainDialog::onStartupUpdateCheck, this);
 
     //asynchronous call to wxWindow::Dimensions(): fix superfluous frame on right and bottom when FFS is started in fullscreen mode
     Bind(wxEVT_IDLE, &MainDialog::onLayoutWindowAsync, this);
Index: FreeFileSync-13.6/FreeFileSync/Source/ui/version_check.cpp
===================================================================
--- FreeFileSync-13.6.orig/FreeFileSync/Source/ui/version_check.cpp
+++ FreeFileSync-13.6/FreeFileSync/Source/ui/version_check.cpp
@@ -48,7 +48,8 @@ void openBrowserForDownload(wxWindow* pa
 bool fff::automaticUpdateCheckDue(time_t lastUpdateCheck)
 {
     const time_t now = std::time(nullptr);
-    return numeric::dist(now, lastUpdateCheck) >= 7 * 24 * 3600; //check weekly
+    //return numeric::dist(now, lastUpdateCheck) >= 7 * 24 * 3600; //check weekly
+    return false;
 }
 
 
openSUSE Build Service is sponsored by