Skip to content

Commit

Permalink
Don't do an update if there is a file on the command line
Browse files Browse the repository at this point in the history
  • Loading branch information
timangus committed Jul 19, 2024
1 parent 3a9ac62 commit ad79135
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ int start(int argc, char *argv[], ConsoleOutputFiles& consoleOutputFiles)

#ifndef Q_OS_WASM
auto dontUpdate = commandLineParser.isSet(u"dontUpdate"_s) ||
commandLineParser.isSet(u"parameters"_s);
commandLineParser.isSet(u"parameters"_s) ||
!commandLineParser.positionalArguments().isEmpty();

if(!dontUpdate && Updater::updateAvailable())
{
Expand Down

0 comments on commit ad79135

Please sign in to comment.