mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 15:37:26 -06:00
more clean up for feature selecting a random port when starts up
This commit is contained in:
committed by
sledgehammer999
parent
75e28bb3e6
commit
2de8b9112d
@@ -77,8 +77,7 @@ public:
|
||||
QIniSettings::sync();
|
||||
}
|
||||
|
||||
// General options
|
||||
|
||||
// General options
|
||||
QString getLocale() const {
|
||||
return value(QString::fromUtf8("Preferences/General/Locale"), "en_GB").toString();
|
||||
}
|
||||
@@ -86,7 +85,7 @@ public:
|
||||
void setLocale(const QString &locale) {
|
||||
setValue(QString::fromUtf8("Preferences/General/Locale"), locale);
|
||||
}
|
||||
|
||||
|
||||
bool useProgramNotification() const {
|
||||
return value(QString::fromUtf8("Preferences/General/ProgramNotification"), true).toBool();
|
||||
}
|
||||
@@ -128,11 +127,11 @@ public:
|
||||
}
|
||||
|
||||
bool useRandomPort() const {
|
||||
return value(QString::fromUtf8("Preferences/General/RandomPort"), true).toBool();
|
||||
return value(QString::fromUtf8("Preferences/General/UseRandomPort"), false).toBool();
|
||||
}
|
||||
|
||||
void setRandomPort(bool b) {
|
||||
setValue("Preferences/General/RandomPort", b);
|
||||
setValue("Preferences/General/UseRandomPort", b);
|
||||
}
|
||||
|
||||
bool systrayIntegration() const {
|
||||
@@ -1050,6 +1049,7 @@ public:
|
||||
setValue(QString::fromUtf8("Preferences/Connection/MaxHalfOpenConnec"), value);
|
||||
}
|
||||
|
||||
|
||||
void setNetworkInterface(const QString& iface) {
|
||||
setValue(QString::fromUtf8("Preferences/Connection/Interface"), iface);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user