mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Revise legal notice
For GUI and non-daemon console, the legal notice won't ask for user acceptance anymore and only provide an OK button (or Enter key in console) from now on. For daemon mode, qbt will print the legal notice and continue to run. It will also notify user to use command line option `--confirm-legal-notice` to suppress the message. The message will be printed on every start up unless user specify the command line option once. PR #20080.
This commit is contained in:
@@ -1480,19 +1480,6 @@ void Preferences::setDNSLastIP(const QString &ip)
|
||||
setValue(u"DNSUpdater/lastIP"_s, ip);
|
||||
}
|
||||
|
||||
bool Preferences::getAcceptedLegal() const
|
||||
{
|
||||
return value(u"LegalNotice/Accepted"_s, false);
|
||||
}
|
||||
|
||||
void Preferences::setAcceptedLegal(const bool accepted)
|
||||
{
|
||||
if (accepted == getAcceptedLegal())
|
||||
return;
|
||||
|
||||
setValue(u"LegalNotice/Accepted"_s, accepted);
|
||||
}
|
||||
|
||||
QByteArray Preferences::getMainGeometry() const
|
||||
{
|
||||
return value<QByteArray>(u"MainWindow/geometry"_s);
|
||||
|
||||
Reference in New Issue
Block a user