Merge pull request #3377 from BlaXpirit/recheck-confirmation-setting

Implement an option to disable confirmation of torrent recheck
This commit is contained in:
sledgehammer999
2015-07-14 00:32:53 +03:00
4 changed files with 22 additions and 4 deletions

View File

@@ -1894,6 +1894,16 @@ void Preferences::setConfirmTorrentDeletion(bool enabled)
setValue("Preferences/Advanced/confirmTorrentDeletion", enabled);
}
bool Preferences::confirmTorrentRecheck() const
{
return value("Preferences/Advanced/confirmTorrentRecheck", true).toBool();
}
void Preferences::setConfirmTorrentRecheck(bool enabled)
{
setValue("Preferences/Advanced/confirmTorrentRecheck", enabled);
}
TrayIcon::Style Preferences::trayIconStyle() const
{
return TrayIcon::Style(value("Preferences/Advanced/TrayIconStyle", TrayIcon::NORMAL).toInt());

View File

@@ -424,6 +424,8 @@ public:
#endif
bool confirmTorrentDeletion() const;
void setConfirmTorrentDeletion(bool enabled);
bool confirmTorrentRecheck() const;
void setConfirmTorrentRecheck(bool enabled);
TrayIcon::Style trayIconStyle() const;
void setTrayIconStyle(TrayIcon::Style style);