mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-11 15:56:17 -07:00
parent
f2dd1e6456
commit
fdba525e62
3 changed files with 21 additions and 0 deletions
|
@ -196,6 +196,12 @@ Application::Application(int &argc, char **argv)
|
|||
|
||||
if (m_commandLineArgs.webUiPort > 0) // it will be -1 when user did not set any value
|
||||
Preferences::instance()->setWebUiPort(m_commandLineArgs.webUiPort);
|
||||
|
||||
if (m_commandLineArgs.torrentingPort > 0) // it will be -1 when user did not set any value
|
||||
{
|
||||
SettingValue<int> port {u"BitTorrent/Session/Port"_qs};
|
||||
port = m_commandLineArgs.torrentingPort;
|
||||
}
|
||||
}
|
||||
|
||||
Application::~Application()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue