refactor: Restructure parsing and setup loading methods

This commit is contained in:
Lars Toenning
2024-02-15 00:01:31 +01:00
parent 99de8009be
commit 9d3ae3e2b3
8 changed files with 50 additions and 34 deletions

View File

@@ -37,10 +37,10 @@ int main(int argc, char *argv[])
int r = 0;
{
CSwiftGuiStdApplication a; // application with contexts
if (!a.parseCommandLineArgsAndLoadSetup()) { return EXIT_FAILURE; }
a.splashScreen(CIcons::swift256());
a.setMinimumSizeInCharacters(60, 42); // experimental
if (!a.parseAndLoadSetup()) { return EXIT_FAILURE; }
if (!a.hasSetupReader() || !a.start())
if (!a.start())
{
a.gracefulShutdown();
return EXIT_FAILURE;