mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07: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:
parent
608efc77e8
commit
0dbac78e17
11 changed files with 169 additions and 93 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue