mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-01 05:08:05 -06:00
Migrate everything to use the new Preferences class and not access directly the qbittorrent.ini file.
This commit is contained in:
@@ -42,7 +42,7 @@ UpDownRatioDlg::UpDownRatioDlg(bool useDefault, qreal initialValue,
|
||||
ui->useDefaultButton->setChecked(true);
|
||||
} else if (initialValue == -1) {
|
||||
ui->noLimitButton->setChecked(true);
|
||||
initialValue = Preferences().getGlobalMaxRatio();
|
||||
initialValue = Preferences::instance()->getGlobalMaxRatio();
|
||||
} else {
|
||||
ui->torrentLimitButton->setChecked(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user