mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 14:08:03 -06:00
Prevent app from being closed when disabling system tray icon
PR #20627. Closes #20604.
This commit is contained in:
committed by
GitHub
parent
f20467889d
commit
f5cac13979
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user