Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 48402c3

Browse files
author
Partouf
committedJun 11, 2024·
move startup
1 parent 6581870 commit 48402c3

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed
 

‎app/Globals/StartupParams.pas

+7-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ implementation
1616
DataMod_Database,
1717
FireDAC.Comp.Client,
1818
Logging.Interfaces,
19-
Settings;
19+
Settings, MVCServer;
2020

2121
class procedure TStartupParams.CheckDatabaseConnection;
2222
var
@@ -71,13 +71,19 @@ class procedure TStartupParams.Check;
7171
Assert(Assigned(GSettings), 'App not initialized correctly');
7272

7373
GSettings.SettingsCheck;
74+
75+
Exit;
7476
end;
7577

7678
if SameText(CurrentParam, '--dbtest') then
7779
begin
7880
TestDatabaseConnection;
81+
82+
Exit;
7983
end;
8084
end;
85+
86+
TMVCServer.Start;
8187
end;
8288

8389
end.

‎app/ds24_app.dpr

-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ begin
2525
GLogging.Info('ds24_app version ' + C_COMMITHASH_MAIN);
2626

2727
TStartupParams.Check;
28-
29-
TMVCServer.Start;
3028
except
3129
on E: Exception do
3230
GLogging.Error(E.ClassName + ': ' + E.Message);

0 commit comments

Comments
 (0)
Please sign in to comment.