Add new shortcut
This commit is contained in:
@@ -145,7 +145,6 @@ Kirigami.ApplicationWindow {
|
|||||||
text: i18n("Start a Chat")
|
text: i18n("Start a Chat")
|
||||||
icon.name: "irc-join-channel"
|
icon.name: "irc-join-channel"
|
||||||
onTriggered: pushReplaceLayer("qrc:/imports/NeoChat/Page/StartChatPage.qml", {"connection": Controller.activeConnection})
|
onTriggered: pushReplaceLayer("qrc:/imports/NeoChat/Page/StartChatPage.qml", {"connection": Controller.activeConnection})
|
||||||
|
|
||||||
enabled: pageStack.layers.currentItem.title !== i18n("Start a Chat")
|
enabled: pageStack.layers.currentItem.title !== i18n("Start a Chat")
|
||||||
},
|
},
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
@@ -155,7 +154,7 @@ Kirigami.ApplicationWindow {
|
|||||||
let dialog = createRoomDialog.createObject(root.overlay);
|
let dialog = createRoomDialog.createObject(root.overlay);
|
||||||
dialog.open();
|
dialog.open();
|
||||||
}
|
}
|
||||||
|
shortcut: StandardKey.New
|
||||||
enabled: pageStack.layers.currentItem.title !== i18n("Start a Chat")
|
enabled: pageStack.layers.currentItem.title !== i18n("Start a Chat")
|
||||||
},
|
},
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
|
|||||||
Reference in New Issue
Block a user