Skip to content

Commit 8779efa

Browse files
committed
Check for updates automatically in Release mode only
1 parent ffa0549 commit 8779efa

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#Open Ephys GUI main build file
22
cmake_minimum_required(VERSION 3.15)
33

4-
set(GUI_VERSION 0.6.3)
4+
set(GUI_VERSION 0.6.4)
55

66
string(REGEX MATCHALL "[0-9]+" VERSION_LIST ${GUI_VERSION})
77
set(GUI_VERSION_HEX "0x")

Source/AutoUpdater.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -503,10 +503,9 @@ void LatestVersionCheckerAndUpdater::downloadAndInstall (const Asset& asset, con
503503
}
504504
else
505505
{
506-
msgBoxString = "Please launch the installer file located at: \n" +
506+
msgBoxString = "Please quit the GUI first, then launch the installer file located at: \n" +
507507
targetFile.getFullPathName().quoted() +
508-
"\nafter closing the GUI, "
509-
"and follow the steps to finish updating the GUI.";
508+
"\nand follow the steps to finish updating the GUI.";
510509
}
511510

512511

Source/MainWindow.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,10 @@ MainWindow::MainWindow(const File& fileToLoad)
162162
disableHttpServer();
163163
}
164164

165+
#ifdef NDEBUG
165166
if(automaticVersionChecking)
166167
LatestVersionCheckerAndUpdater::getInstance()->checkForNewVersion (true, this);
167-
168+
#endif
168169
}
169170

170171
MainWindow::~MainWindow()

0 commit comments

Comments
 (0)