mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
Enable system tray in MACOSX (Nick Korotysh).
This commit is contained in:
parent
8d5cfcdabd
commit
b41b044d02
2 changed files with 0 additions and 8 deletions
|
@ -102,14 +102,10 @@ options_imp::options_imp(QWidget *parent):
|
|||
// Load options
|
||||
loadOptions();
|
||||
// Disable systray integration if it is not supported by the system
|
||||
#ifndef Q_WS_MAC
|
||||
if (!QSystemTrayIcon::isSystemTrayAvailable()) {
|
||||
#endif
|
||||
checkShowSystray->setChecked(false);
|
||||
checkShowSystray->setEnabled(false);
|
||||
#ifndef Q_WS_MAC
|
||||
}
|
||||
#endif
|
||||
#if !defined(Q_WS_X11)
|
||||
label_trayIconStyle->setVisible(false);
|
||||
comboTrayIcon->setVisible(false);
|
||||
|
|
|
@ -135,11 +135,7 @@ public:
|
|||
}
|
||||
|
||||
bool systrayIntegration() const {
|
||||
#ifdef Q_WS_MAC
|
||||
return false;
|
||||
#else
|
||||
return value(QString::fromUtf8("Preferences/General/SystrayEnabled"), true).toBool();
|
||||
#endif
|
||||
}
|
||||
|
||||
void setSystrayIntegration(bool enabled) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue