Skip to content

Commit e363468

Browse files
committed
Merge branch 'marcus/exit_panel_0409' into 'main'
[Frontend] [Main window] Added: Exit panel button See merge request MarcusPy827/husky-panel!30
2 parents 2231189 + 3de26af commit e363468

3 files changed

Lines changed: 18 additions & 1 deletion

File tree

‎CHANGELOG‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog | 更新信息
22
## VERSION 0.9.5 (UNSTABLE/WIP)
3+
* marcus/exit_panel_0409
4+
* Added an exit panel button.
5+
* 新增了退出按钮
6+
37
* marcus/xorg_support_0405
48
* Added Xorg session support.
59
* 新增了Xorg会话支持

‎res/interfaces/MainWindow.qml‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,14 @@ Window {
398398
Menu {
399399
id: barContextMenu
400400
MenuItem {
401-
text: StatusBarTranslator.Tr("Configure...")
401+
text: StatusBarTranslator.Tr("ConfigurePanel")
402402
onTriggered: configPanelWindow.open()
403403
}
404+
405+
MenuItem {
406+
text: StatusBarTranslator.Tr("ExitPanel")
407+
onTriggered: Qt.quit()
408+
}
404409
}
405410

406411
RowLayout {

‎res/translations/bar.locale‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,11 @@ en_us = "Su"
141141
[Configure...]
142142
zh_cn = "配置..."
143143
en_us = "Configure..."
144+
145+
[ConfigurePanel]
146+
zh_cn = "配置面板"
147+
en_us = "Configure panel"
148+
149+
[ExitPanel]
150+
zh_cn = "退出面板"
151+
en_us = "Exit panel"

0 commit comments

Comments
 (0)