mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-12 16:23:07 -07:00
Linux/Wayland: make window title bar icon work
This commit is contained in:
parent
bb041c0eca
commit
9f250713d2
1 changed files with 4 additions and 0 deletions
|
@ -125,6 +125,7 @@ Application::Application(const QString &id, int &argc, char **argv)
|
|||
qRegisterMetaType<Log::Msg>("Log::Msg");
|
||||
|
||||
setApplicationName("qBittorrent");
|
||||
setOrganizationDomain("qbittorrent.org");
|
||||
validateCommandLineParameters();
|
||||
|
||||
const QString profileDir = m_commandLineArgs.portableMode
|
||||
|
@ -146,6 +147,9 @@ Application::Application(const QString &id, int &argc, char **argv)
|
|||
#if !defined(DISABLE_GUI)
|
||||
setAttribute(Qt::AA_UseHighDpiPixmaps, true); // opt-in to the high DPI pixmap support
|
||||
setQuitOnLastWindowClosed(false);
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(5, 7, 0)
|
||||
setDesktopFileName("org.qbittorrent.qBittorrent");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if defined(Q_OS_WIN) && !defined(DISABLE_GUI)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue