mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 08:16:16 -07:00
Prevent app from being closed when disabling system tray icon
PR #20627. Closes #20604.
This commit is contained in:
parent
f20467889d
commit
f5cac13979
1 changed files with 1 additions and 0 deletions
|
@ -251,6 +251,7 @@ Application::Application(int &argc, char **argv)
|
||||||
#if !defined(DISABLE_GUI)
|
#if !defined(DISABLE_GUI)
|
||||||
setDesktopFileName(u"org.qbittorrent.qBittorrent"_s);
|
setDesktopFileName(u"org.qbittorrent.qBittorrent"_s);
|
||||||
setQuitOnLastWindowClosed(false);
|
setQuitOnLastWindowClosed(false);
|
||||||
|
setQuitLockEnabled(false);
|
||||||
QPixmapCache::setCacheLimit(PIXMAP_CACHE_SIZE);
|
QPixmapCache::setCacheLimit(PIXMAP_CACHE_SIZE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue