mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 14:17:12 +02:00
Short launcher access in Logs::start
This commit is contained in:
parent
0c61e0e184
commit
100e875530
1 changed files with 4 additions and 3 deletions
|
@ -346,7 +346,8 @@ bool WritingEntry() {
|
|||
void start() {
|
||||
Assert(LogsData == nullptr);
|
||||
|
||||
if (!Core::Launcher::Instance().checkPortableVersionFolder()) {
|
||||
auto &launcher = Core::Launcher::Instance();
|
||||
if (!launcher.checkPortableVersionFolder()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -414,7 +415,7 @@ void start() {
|
|||
|
||||
QDir().mkpath(cWorkingDir() + u"tdata"_q);
|
||||
|
||||
Core::Launcher::Instance().workingFolderReady();
|
||||
launcher.workingFolderReady();
|
||||
CrashReports::StartCatching();
|
||||
|
||||
if (!LogsData->openMain()) {
|
||||
|
@ -430,7 +431,7 @@ void start() {
|
|||
LOG(("Executable dir: %1, name: %2").arg(cExeDir(), cExeName()));
|
||||
LOG(("Initial working dir: %1").arg(initialWorkingDir));
|
||||
LOG(("Working dir: %1").arg(cWorkingDir()));
|
||||
LOG(("Command line: %1").arg(Core::Launcher::Instance().arguments().join(' ')));
|
||||
LOG(("Command line: %1").arg(launcher.arguments().join(' ')));
|
||||
|
||||
if (!LogsData) {
|
||||
LOG(("FATAL: Could not open '%1' for writing log!"
|
||||
|
|
Loading…
Add table
Reference in a new issue