Skip to content

Commit e371e6b

Browse files
committed
Update legacy config warning
1 parent c614cac commit e371e6b

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Source/UI/EditorViewport.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,15 +1622,15 @@ const String EditorViewport::loadState (File fileToLoad)
16221622
if (child->hasTagName ("VERSION"))
16231623
{
16241624
String savedVersion = child->getAllSubText();
1625-
String minimumVersion = "1.0.0";
1625+
String minimumVersion = String (ProjectInfo::versionString).upToFirstOccurrenceOf (".", false, false) + ".0.0";
16261626

16271627
if (savedVersion.compareNatural (minimumVersion) < 0)
16281628
{
16291629
bool userResponse = AlertWindow::showOkCancelBox (AlertWindow::WarningIcon,
1630-
"Incompatible Configuration File",
1631-
"This configuration file was created using a version of Open Ephys GUI older than 1.0.0. "
1632-
"Some settings and parmeters may not load correctly.\n\n"
1633-
"Would you like to proceed with loading the configuration file?",
1630+
"Legacy Configuration File Detected",
1631+
"This configuration file was created using a version of Open Ephys GUI older than "
1632+
+ minimumVersion + ". Some settings and parmeters may not load correctly.\n\n"
1633+
"Would you like to proceed with loading the configuration file?",
16341634
"Yes",
16351635
"No");
16361636

0 commit comments

Comments
 (0)