mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
- Cleanup systray code
This commit is contained in:
parent
e93fab40fe
commit
10c40c6485
5 changed files with 50 additions and 51 deletions
|
@ -67,6 +67,11 @@ public:
|
|||
return settings.value(QString::fromUtf8("Preferences/General/SystrayEnabled"), true).toBool();
|
||||
}
|
||||
|
||||
static void setSystrayIntegration(bool enabled) {
|
||||
QSettings settings("qBittorrent", "qBittorrent");
|
||||
settings.setValue(QString::fromUtf8("Preferences/General/SystrayEnabled"), enabled);
|
||||
}
|
||||
|
||||
static bool isToolbarDisplayed() {
|
||||
QSettings settings("qBittorrent", "qBittorrent");
|
||||
return settings.value(QString::fromUtf8("Preferences/General/ToolbarDisplayed"), true).toBool();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue