aboutsummaryrefslogtreecommitdiff
path: root/src/settingswidget.cpp
diff options
context:
space:
mode:
authorLibravatar Keshav Bhatt <keshavnrj@gmail.com>2022-06-16 16:25:19 +0530
committerLibravatar Keshav Bhatt <keshavnrj@gmail.com>2022-06-16 16:25:19 +0530
commitdba5a9bcf89a0a8e050ce50e8400856ed6ce0bd5 (patch)
tree7fe07ef178adb26d0b80e132132aeb73bd73e4dd /src/settingswidget.cpp
parent92382d7bd5d4130cfbda395520d198954eded4d1 (diff)
downloadwhatsie-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.cpp8
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);