mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Improve command line parameters dispatching
Encapsulate parameters dispatching in Application class. Avoid serializing parameters when it is not necessary. PR #18469.
This commit is contained in:
parent
09e58df03f
commit
0dcbf9f698
5 changed files with 147 additions and 156 deletions
|
@ -193,7 +193,7 @@ int main(int argc, char *argv[])
|
|||
#endif
|
||||
|
||||
QThread::msleep(300);
|
||||
app->sendParams(params.paramList());
|
||||
app->callMainInstance();
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
@ -258,7 +258,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
registerSignalHandlers();
|
||||
|
||||
return app->exec(params.paramList());
|
||||
return app->exec();
|
||||
}
|
||||
catch (const CommandLineParameterError &er)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue