always save the size/state, fixes closing app in staged mode and then restarting in windowed mode
commit1fe62a068aea13cac351cdfd8daccf03a4400397
authorLukáš Tinkl <lukas.tinkl@canonical.com>
dateMon 27 Feb 2017, 15:16 (10 years ago)
parent56271b3
qml/Stage/Stage.qml+1−3
@@ -980,9 +980,7 @@ FocusScope {
980980 _constructing = false;
981981 }
982982 Component.onDestruction: {
983− if (root.mode == "windowed") {
984− windowStateSaver.save();
985− }
983+ windowStateSaver.save();
986984
987985 if (!root.parent) {
988986 // This stage is about to be destroyed. Don't mess up with the model at this point