mirror of
https://github.com/transmission/transmission.git
synced 2026-02-14 23:19:34 +00:00
refactor: simplify tr_sessionLoadSettings() args (#7935)
* refactor: remove unused appname arg from tr_sessionLoadSettings() * refactor: swap order of arguments to tr_sessionLoadSettings() so way the optional arg can go at the end
This commit is contained in:
@@ -326,7 +326,7 @@ int tr_main(int argc, char* argv[])
|
||||
|
||||
/* load the defaults from config file + libtransmission defaults */
|
||||
auto const config_dir = getConfigDir(argc, (char const**)argv);
|
||||
auto settings = tr_sessionLoadSettings(nullptr, config_dir.c_str(), MyConfigName);
|
||||
auto settings = tr_sessionLoadSettings(config_dir);
|
||||
|
||||
/* the command line overrides defaults */
|
||||
if (parseCommandLine(&settings, argc, (char const**)argv) != 0)
|
||||
|
||||
Reference in New Issue
Block a user