mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 08:27:24 -06:00
FEATURE: Software update check can now be disabled (Mac OS X / Windows)
This commit is contained in:
@@ -978,6 +978,15 @@ public:
|
||||
setValue(QString::fromUtf8("Preferences/Advanced/trackerPort"), port);
|
||||
}
|
||||
|
||||
#if defined(Q_WS_WIN) || define(Q_WS_MAC)
|
||||
bool isUpdateCheckEnabled() const {
|
||||
return value(QString::fromUtf8("Preferences/Advanced/updateCheck"), true).toBool();
|
||||
}
|
||||
|
||||
void setUpdateCheckEnabled(bool enabled) {
|
||||
setValue(QString::fromUtf8("Preferences/Advanced/updateCheck"), enabled);
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
#endif // PREFERENCES_H
|
||||
|
||||
Reference in New Issue
Block a user