diff options
author | 2022-06-16 16:25:19 +0530 | |
---|---|---|
committer | 2022-06-16 16:25:19 +0530 | |
commit | dba5a9bcf89a0a8e050ce50e8400856ed6ce0bd5 (patch) | |
tree | 7fe07ef178adb26d0b80e132132aeb73bd73e4dd /src/settingswidget.cpp | |
parent | 92382d7bd5d4130cfbda395520d198954eded4d1 (diff) | |
download | whatsie-dba5a9bcf89a0a8e050ce50e8400856ed6ce0bd5.tar.gz whatsie-dba5a9bcf89a0a8e050ce50e8400856ed6ce0bd5.zip |
chore: use Ctrl+W to hide window to tray
- replace Ctrl+H with Ctrl+W to hide window to tray
- fix the minimize behavior
Diffstat (limited to 'src/settingswidget.cpp')
-rw-r--r-- | src/settingswidget.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/settingswidget.cpp b/src/settingswidget.cpp index fcc348d..8e61b38 100644 --- a/src/settingswidget.cpp +++ b/src/settingswidget.cpp @@ -486,6 +486,14 @@ void SettingsWidget::on_showShortcutsButton_clicked() { label->setAlignment(Qt::AlignHCenter); layout->addWidget(label); } + // handle special case for minimize to try action + if (action->text().contains("minimize", Qt::CaseInsensitive) || + action->text().contains("Mi&nimize to tray")) { + QLabel *label = new QLabel( + action->text().remove("&") + " | " + "Ctrl+W", sheet); + label->setAlignment(Qt::AlignHCenter); + layout->addWidget(label); + } } } sheet->setAttribute(Qt::WA_DeleteOnClose); |