Skip to content
Snippets Groups Projects
Commit d835e4a2 authored by jsiegle's avatar jsiegle
Browse files

Settings files now use software version string

parent 4326f783
No related branches found
No related tags found
No related merge requests found
...@@ -113,6 +113,10 @@ void MainWindow::saveWindowBounds() ...@@ -113,6 +113,10 @@ void MainWindow::saveWindowBounds()
XmlElement* xml = new XmlElement("MAINWINDOW"); XmlElement* xml = new XmlElement("MAINWINDOW");
xml->setAttribute("version", JUCEApplication::getInstance()->getApplicationVersion());
JUCEApplication::getInstance()->systemRequestedQuit();
XmlElement* bounds = new XmlElement("BOUNDS"); XmlElement* bounds = new XmlElement("BOUNDS");
bounds->setAttribute("x",getScreenX()); bounds->setAttribute("x",getScreenX());
bounds->setAttribute("y",getScreenY()); bounds->setAttribute("y",getScreenY());
......
...@@ -1178,7 +1178,7 @@ const String EditorViewport::saveState(File fileToUse) ...@@ -1178,7 +1178,7 @@ const String EditorViewport::saveState(File fileToUse)
XmlElement* info = xml->createNewChildElement("INFO"); XmlElement* info = xml->createNewChildElement("INFO");
XmlElement* version = info->createNewChildElement("VERSION"); XmlElement* version = info->createNewChildElement("VERSION");
version->addTextElement("0.1"); version->addTextElement(JUCEApplication::getInstance()->getApplicationVersion());
Time currentTime = Time::getCurrentTime(); Time currentTime = Time::getCurrentTime();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment