summary refs log tree commit diff
path: root/resources/qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-03-27 22:01:56 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-03-27 22:01:56 +0100
commit1a448ae5849d4229df5cb36fad90a1bfd1d0e99f (patch)
tree3580d54b0af2ace343656c8e7699a82e60fbff43 /resources/qml
parentFix double click on video message (diff)
downloadnheko-1a448ae5849d4229df5cb36fad90a1bfd1d0e99f.tar.xz
Remove delay when focusing quick switcher
Diffstat (limited to 'resources/qml')
-rw-r--r--resources/qml/QuickSwitcher.qml15
1 files changed, 1 insertions, 14 deletions
diff --git a/resources/qml/QuickSwitcher.qml b/resources/qml/QuickSwitcher.qml
index 8730f101..9f4691b6 100644
--- a/resources/qml/QuickSwitcher.qml
+++ b/resources/qml/QuickSwitcher.qml
@@ -12,13 +12,6 @@ Popup {
     property int textHeight: Math.round(Qt.application.font.pixelSize * 2.4)
     property int textMargin: Math.round(textHeight / 8)
 
-    function delay(delayTime, cb) {
-        timer.interval = delayTime;
-        timer.repeat = false;
-        timer.triggered.connect(cb);
-        timer.start();
-    }
-
     background: null
     width: Math.round(parent.width / 2)
     x: Math.round(parent.width / 2 - width / 2)
@@ -29,9 +22,7 @@ Popup {
     palette: colors
     onOpened: {
         completerPopup.open();
-        delay(200, function() {
-            roomTextInput.forceActiveFocus();
-        });
+	roomTextInput.forceActiveFocus();
     }
     onClosed: {
         completerPopup.close();
@@ -93,10 +84,6 @@ Popup {
         target: completerPopup
     }
 
-    Timer {
-        id: timer
-    }
-
     Overlay.modal: Rectangle {
         color: "#aa1E1E1E"
     }