diff --git a/examples/quick/ApplicationWindow.qml b/examples/quick/ApplicationWindow.qml index a6d4b8b..3d9675b 100644 --- a/examples/quick/ApplicationWindow.qml +++ b/examples/quick/ApplicationWindow.qml @@ -43,13 +43,8 @@ FramelessApplicationWindow { } return FramelessUtils.defaultSystemLightColor; } - Connections { - target: window - function onClosing(close) - { - Settings.saveGeometry(window) - } - } + + Component.onDestruction: Settings.saveGeometry(window) FramelessHelper.onReady: { // Let FramelessHelper know what's our homemade title bar, otherwise diff --git a/examples/quick/Window.qml b/examples/quick/Window.qml index f318e8e..d6667c8 100644 --- a/examples/quick/Window.qml +++ b/examples/quick/Window.qml @@ -43,13 +43,8 @@ FramelessWindow { } return FramelessUtils.defaultSystemLightColor; } - Connections { - target: window - function onClosing(close) - { - Settings.saveGeometry(window) - } - } + + Component.onDestruction: Settings.saveGeometry(window) FramelessHelper.onReady: { // Let FramelessHelper know what's our homemade title bar, otherwise