Skip to content

Commit

Permalink
code improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
mhogomchungu committed Sep 4, 2024
1 parent cf12980 commit e70065f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/engines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1867,16 +1867,21 @@ void engines::engine::baseEngine::processData( Logger::Data& outPut,
void engines::engine::baseEngine::updateDownLoadCmdOptions( const engines::engine::baseEngine::updateOpts& s,
bool downloadOptionsAsLast )
{
if( s.uiOptions.isEmpty() ){
if( downloadOptionsAsLast ){

s.ourOptions.append( s.userOptions ) ;
}else{
if( downloadOptionsAsLast ){
if( !s.uiOptions.isEmpty() ){

s.ourOptions.append( s.uiOptions ) ;
}else{
s.ourOptions.append( s.userOptions ) ;
}
}else{
if( !s.userOptions.isEmpty() ){

s.ourOptions.append( s.userOptions ) ;
}else{
s.ourOptions.append( s.uiOptions ) ;
}
}
}

Expand Down

0 comments on commit e70065f

Please sign in to comment.