mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
Don't update settings when it hasn't changed
So when a setting is the same as the default, it won't write an entry to config file on disk.
This commit is contained in:
parent
045b4f0a06
commit
ffc3d8d345
2 changed files with 426 additions and 39 deletions
File diff suppressed because it is too large
Load diff
|
@ -142,7 +142,7 @@ public:
|
|||
QString getMailNotificationEmail() const;
|
||||
void setMailNotificationEmail(const QString &mail);
|
||||
QString getMailNotificationSMTP() const;
|
||||
void setMailNotificationSMTP(const QString &smtp_server);
|
||||
void setMailNotificationSMTP(const QString &smtpServer);
|
||||
bool getMailNotificationSMTPSSL() const;
|
||||
void setMailNotificationSMTPSSL(bool use);
|
||||
bool getMailNotificationSMTPAuth() const;
|
||||
|
@ -291,14 +291,14 @@ public:
|
|||
bool neverCheckFileAssoc() const;
|
||||
void setNeverCheckFileAssoc(bool check = true);
|
||||
static bool isTorrentFileAssocSet();
|
||||
static bool isMagnetLinkAssocSet();
|
||||
static void setTorrentFileAssoc(bool set);
|
||||
static bool isMagnetLinkAssocSet();
|
||||
static void setMagnetLinkAssoc(bool set);
|
||||
#endif
|
||||
#ifdef Q_OS_MACOS
|
||||
static bool isTorrentFileAssocSet();
|
||||
static bool isMagnetLinkAssocSet();
|
||||
static void setTorrentFileAssoc();
|
||||
static bool isMagnetLinkAssocSet();
|
||||
static void setMagnetLinkAssoc();
|
||||
#endif
|
||||
int getTrackerPort() const;
|
||||
|
|
Loading…
Reference in a new issue