mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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() {
|
void start() {
|
||||||
Assert(LogsData == nullptr);
|
Assert(LogsData == nullptr);
|
||||||
|
|
||||||
if (!Core::Launcher::Instance().checkPortableVersionFolder()) {
|
auto &launcher = Core::Launcher::Instance();
|
||||||
|
if (!launcher.checkPortableVersionFolder()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -414,7 +415,7 @@ void start() {
|
||||||
|
|
||||||
QDir().mkpath(cWorkingDir() + u"tdata"_q);
|
QDir().mkpath(cWorkingDir() + u"tdata"_q);
|
||||||
|
|
||||||
Core::Launcher::Instance().workingFolderReady();
|
launcher.workingFolderReady();
|
||||||
CrashReports::StartCatching();
|
CrashReports::StartCatching();
|
||||||
|
|
||||||
if (!LogsData->openMain()) {
|
if (!LogsData->openMain()) {
|
||||||
|
@ -430,7 +431,7 @@ void start() {
|
||||||
LOG(("Executable dir: %1, name: %2").arg(cExeDir(), cExeName()));
|
LOG(("Executable dir: %1, name: %2").arg(cExeDir(), cExeName()));
|
||||||
LOG(("Initial working dir: %1").arg(initialWorkingDir));
|
LOG(("Initial working dir: %1").arg(initialWorkingDir));
|
||||||
LOG(("Working dir: %1").arg(cWorkingDir()));
|
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) {
|
if (!LogsData) {
|
||||||
LOG(("FATAL: Could not open '%1' for writing log!"
|
LOG(("FATAL: Could not open '%1' for writing log!"
|
||||||
|
|
Loading…
Add table
Reference in a new issue