Skip to content

Commit

Permalink
Merge pull request #24 from holsthei/master
Browse files Browse the repository at this point in the history
Fixed window title matching with custom menuitems (disableOn)
  • Loading branch information
thp committed Mar 31, 2014
2 parents a1975d7 + 459675d commit 9f25337
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions qml/Main.qml
Expand Up @@ -31,6 +31,8 @@ PageStackWindow {
window.vkbKeypress(event.key,event.modifiers);
}

property string windowTitle: util.currentWindowTitle();

initialPage:Page {
id: page
anchors.fill: parent
Expand All @@ -45,8 +47,6 @@ PageStackWindow {
property int fadeOutTime: 80
property int fadeInTime: 350

property string windowTitle: util.currentWindowTitle();

anchors.fill: parent

id: window
Expand Down
2 changes: 1 addition & 1 deletion qml/MenuFingerterm.qml
Expand Up @@ -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);
Expand Down

0 comments on commit 9f25337

Please sign in to comment.