From 6d2f0fec12c142cd378c5515091e1aa5b58597fd Mon Sep 17 00:00:00 2001 From: Saturneric Date: Fri, 20 May 2022 03:02:22 +0800 Subject: fix: adjust initialized order and organize 1. disable command line file arg input ability --- src/main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 6ef5a7bc..4383bb21 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -97,18 +97,18 @@ int main(int argc, char* argv[]) { // clean something before exit atexit(before_exit); - // init the logging system - init_logging_system(); - - // init the logging system for core - GpgFrontend::InitLoggingSystem(); - // initialize qt resources Q_INIT_RESOURCE(gpgfrontend); // create qt application auto* app = init_qapplication(argc, argv); + // init the logging system + init_logging_system(); + + // init the logging system for core + GpgFrontend::InitLoggingSystem(); + /** * internationalisation. loop to restart main window * with changed translation when settings change. -- cgit v1.2.3