mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 16:58:06 -06:00
FEATURE: Inhibit system sleep when torrents are active (Vladimir Golovnev)
Remove visual style settings
This commit is contained in:
@@ -77,14 +77,6 @@ public:
|
||||
setValue(QString::fromUtf8("Preferences/General/Locale"), locale);
|
||||
}
|
||||
|
||||
QString getStyle() const {
|
||||
return value(QString::fromUtf8("Preferences/General/Style"), "").toString();
|
||||
}
|
||||
|
||||
void setStyle(const QString &style) {
|
||||
setValue(QString::fromUtf8("Preferences/General/Style"), style);
|
||||
}
|
||||
|
||||
bool useProgramNotification() const {
|
||||
return value(QString::fromUtf8("Preferences/General/ProgramNotification"), true).toBool();
|
||||
}
|
||||
@@ -173,6 +165,15 @@ public:
|
||||
setValue("Preferences/General/NoSplashScreen", b);
|
||||
}
|
||||
|
||||
// Preventing from system suspend while active torrents are presented.
|
||||
bool preventFromSuspend() const {
|
||||
return value(QString::fromUtf8("Preferences/General/PreventFromSuspend"), false).toBool();
|
||||
}
|
||||
|
||||
void setPreventFromSuspend(bool b) {
|
||||
setValue("Preferences/General/PreventFromSuspend", b);
|
||||
}
|
||||
|
||||
// Downloads
|
||||
QString getSavePath() const {
|
||||
#ifdef Q_WS_WIN
|
||||
|
||||
Reference in New Issue
Block a user