on xenial help sign in
always save the size/state, fixes closing app in staged mode and then restarting in windowed mode
1fe62a0Lukáš Tinkl
qml/Stage/Stage.qml+1−3
@@ -980,9 +980,7 @@ FocusScope {
980 _constructing = false;
980 _constructing = false;
981 }
981 }
982 Component.onDestruction: {
982 Component.onDestruction: {
983− if (root.mode == "windowed") {
984− windowStateSaver.save();
983+ windowStateSaver.save();
985− }
986
984
987 if (!root.parent) {
985 if (!root.parent) {
988 // This stage is about to be destroyed. Don't mess up with the model at this point
986 // This stage is about to be destroyed. Don't mess up with the model at this point