Commit 9f253372 authored by Thomas Perl's avatar Thomas Perl

Merge pull request #24 from holsthei/master

Fixed window title matching with custom menuitems (disableOn)
parents a1975d7e 459675dd
......@@ -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
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment