mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
Respect UI lock when clicking on tray notification. Closes #784.
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user