diff --git a/qml/Main.qml b/qml/Main.qml index 6b01be6..2c4b1fd 100644 --- a/qml/Main.qml +++ b/qml/Main.qml @@ -31,6 +31,8 @@ PageStackWindow { window.vkbKeypress(event.key,event.modifiers); } + property string windowTitle: util.currentWindowTitle(); + initialPage:Page { id: page anchors.fill: parent @@ -45,8 +47,6 @@ PageStackWindow { property int fadeOutTime: 80 property int fadeInTime: 350 - property string windowTitle: util.currentWindowTitle(); - anchors.fill: parent id: window diff --git a/qml/MenuFingerterm.qml b/qml/MenuFingerterm.qml index 94359cd..eba8d5a 100644 --- a/qml/MenuFingerterm.qml +++ b/qml/MenuFingerterm.qml @@ -90,7 +90,7 @@ Rectangle { Button { text: title isShellCommand: true - enabled: disableOn.length === 0 || window.windowTitle.search(disableOn) === -1 + enabled: disableOn.length === 0 || windowTitle.search(disableOn) === -1 onClicked: { hideMenu(); term.putString(command, true);