mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
Simplify the code a bit now that QIniSettings uses qBittorrent / qBittorrent by default
This commit is contained in:
@@ -98,7 +98,7 @@ class LegalNotice: public QObject {
|
||||
|
||||
public:
|
||||
static bool userAgreesWithNotice() {
|
||||
QIniSettings settings(QString::fromUtf8("qBittorrent"), QString::fromUtf8("qBittorrent"));
|
||||
QIniSettings settings;
|
||||
if (settings.value(QString::fromUtf8("LegalNotice/Accepted"), false).toBool()) // Already accepted once
|
||||
return true;
|
||||
#ifdef DISABLE_GUI
|
||||
|
||||
Reference in New Issue
Block a user