mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06: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:
committed by
GitHub
parent
9de32a78f1
commit
6860c0d60d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user