Skip to content

Commit

Permalink
Set default command lines if empty on config load
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan committed Feb 15, 2024
1 parent cd15a0f commit faa5646
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions GUI/Model/GUIConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,12 @@ private static bool DeserializationFixes(GUIConfiguration configuration,
configuration.CommandLineArguments = null;
needsSave = true;
}
else if (configuration.CommandLines.Count < 1)
{
// Don't leave the list empty if user switches CKAN versions
configuration.CommandLines.AddRange(defaultCommandLines);
needsSave = true;
}

return needsSave;
}
Expand Down

0 comments on commit faa5646

Please sign in to comment.