mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
Allow to set qBittorrent as default program
Register qBittorrent as possible default program for .torrent files and magnet links during install. PR #19446.
This commit is contained in:
parent
9de32a78f1
commit
6860c0d60d
10 changed files with 90 additions and 256 deletions
|
@ -1293,21 +1293,6 @@ void Preferences::setRecursiveDownloadEnabled(const bool enable)
|
|||
setValue(u"Preferences/Advanced/DisableRecursiveDownload"_s, !enable);
|
||||
}
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
bool Preferences::neverCheckFileAssoc() const
|
||||
{
|
||||
return value(u"Preferences/Win32/NeverCheckFileAssocation"_s, false);
|
||||
}
|
||||
|
||||
void Preferences::setNeverCheckFileAssoc(const bool check)
|
||||
{
|
||||
if (check == neverCheckFileAssoc())
|
||||
return;
|
||||
|
||||
setValue(u"Preferences/Win32/NeverCheckFileAssocation"_s, check);
|
||||
}
|
||||
#endif // Q_OS_WIN
|
||||
|
||||
int Preferences::getTrackerPort() const
|
||||
{
|
||||
return value<int>(u"Preferences/Advanced/trackerPort"_s, 9000);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue