mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 08:16:16 -07:00
Respect UI lock when clicking on tray notification. Closes #784.
This commit is contained in:
parent
798bd2388b
commit
080377b662
1 changed files with 5 additions and 0 deletions
|
@ -517,6 +517,11 @@ void MainWindow::readSettings() {
|
||||||
|
|
||||||
void MainWindow::balloonClicked() {
|
void MainWindow::balloonClicked() {
|
||||||
if (isHidden()) {
|
if (isHidden()) {
|
||||||
|
if (ui_locked) {
|
||||||
|
// Ask for UI lock password
|
||||||
|
if (!unlockUI())
|
||||||
|
return;
|
||||||
|
}
|
||||||
show();
|
show();
|
||||||
if (isMinimized()) {
|
if (isMinimized()) {
|
||||||
showNormal();
|
showNormal();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue