summary refs log tree commit diff
path: root/resources/qml/Root.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-03-01 01:59:06 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2022-03-01 02:33:22 +0100
commit23efa8f8153922e559931591d5ce517430681555 (patch)
tree4318ccabde5105fd8d09c2b8c51b68c57dc467b1 /resources/qml/Root.qml
parentRemove stray logging (diff)
downloadnheko-23efa8f8153922e559931591d5ce517430681555.tar.xz
Fix a few small completer glitches
Diffstat (limited to '')
-rw-r--r--resources/qml/Root.qml6
1 files changed, 5 insertions, 1 deletions
diff --git a/resources/qml/Root.qml b/resources/qml/Root.qml
index 33ffee3d..14e6770b 100644
--- a/resources/qml/Root.qml
+++ b/resources/qml/Root.qml
@@ -173,7 +173,7 @@ Pane {
         onActivated: {
             var quickSwitch = quickSwitcherComponent.createObject(timelineRoot);
             quickSwitch.open();
-            destroyOnClose(quickSwitch);
+            destroyOnClosed(quickSwitch);
         }
     }
 
@@ -225,6 +225,10 @@ Pane {
         obj.closing.connect(() => obj.destroy());
     }
 
+    function destroyOnClosed(obj) {
+        obj.closed.connect(() => obj.destroy());
+    }
+
     Connections {
         function onOpenProfile(profile) {
             var userProfile = userProfileComponent.createObject(timelineRoot, {