mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-29 14:18:49 +03:00
Improve window closing
This commit is contained in:
parent
4ec0c8c9bb
commit
34ffe054cf
1 changed files with 6 additions and 1 deletions
|
@ -19,9 +19,14 @@ ApplicationWindow {
|
||||||
palette: Nheko.colors
|
palette: Nheko.colors
|
||||||
color: Nheko.colors.window
|
color: Nheko.colors.window
|
||||||
modality: Qt.WindowModal
|
modality: Qt.WindowModal
|
||||||
flags: Qt.Dialog
|
flags: Qt.Dialog | Qt.WindowCloseButtonHint
|
||||||
title: qsTr("Explore Public Rooms")
|
title: qsTr("Explore Public Rooms")
|
||||||
|
|
||||||
|
Shortcut {
|
||||||
|
sequence: StandardKey.Cancel
|
||||||
|
onActivated: roomDirectoryWindow.close()
|
||||||
|
}
|
||||||
|
|
||||||
header: RowLayout {
|
header: RowLayout {
|
||||||
id: searchBarLayout
|
id: searchBarLayout
|
||||||
spacing: Nheko.paddingMedium
|
spacing: Nheko.paddingMedium
|
||||||
|
|
Loading…
Reference in a new issue