mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 08:16:16 -07:00
Support raising window when UI is locked
This commit is contained in:
parent
88960556e3
commit
5ca5441a48
1 changed files with 6 additions and 4 deletions
|
@ -961,11 +961,13 @@ void MainWindow::processParams(const QStringList& params) {
|
||||||
QBtSession::instance()->downloadFromUrl(param);
|
QBtSession::instance()->downloadFromUrl(param);
|
||||||
}else{
|
}else{
|
||||||
if(param.startsWith("qbt://show", Qt::CaseInsensitive)) {
|
if(param.startsWith("qbt://show", Qt::CaseInsensitive)) {
|
||||||
if(!ui_locked) {
|
if(ui_locked) {
|
||||||
|
if(!unlockUI())
|
||||||
|
return;
|
||||||
|
}
|
||||||
show();
|
show();
|
||||||
activateWindow();
|
activateWindow();
|
||||||
raise();
|
raise();
|
||||||
}
|
|
||||||
return; // Do not process more params
|
return; // Do not process more params
|
||||||
}
|
}
|
||||||
if (param.startsWith("bc://bt/", Qt::CaseInsensitive)) {
|
if (param.startsWith("bc://bt/", Qt::CaseInsensitive)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue