Log opening Tape and Puzzle.

This commit is contained in:
Roman Telezhynskyi 2024-02-13 19:55:52 +02:00
parent 08b8023f3c
commit 815f8bf7b8

View File

@ -2191,7 +2191,9 @@ void MainWindow::ShowMeasurements()
arguments.append("--"_L1 + LONG_OPTION_NO_HDPI_SCALING); arguments.append("--"_L1 + LONG_OPTION_NO_HDPI_SCALING);
} }
VApplication::StartDetachedProcess(VApplication::TapeFilePath(), arguments); const QString path = VApplication::TapeFilePath();
qDebug("Opening Tape: path = %s.", qUtf8Printable(path));
VApplication::StartDetachedProcess(path, arguments);
} }
else else
{ {
@ -4214,7 +4216,9 @@ void MainWindow::on_actionOpenPuzzle_triggered()
arguments.append(QStringLiteral("--") + LONG_OPTION_NO_HDPI_SCALING); arguments.append(QStringLiteral("--") + LONG_OPTION_NO_HDPI_SCALING);
} }
VApplication::StartDetachedProcess(VApplication::PuzzleFilePath(), arguments); const QString path = VApplication::PuzzleFilePath();
qDebug("Opening Puzzle: path = %s.", qUtf8Printable(path));
VApplication::StartDetachedProcess(path, arguments);
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
@ -4270,7 +4274,9 @@ void MainWindow::on_actionCreateManualLayout_triggered()
rldFile.setAutoRemove(false); rldFile.setAutoRemove(false);
VApplication::StartDetachedProcess(VApplication::PuzzleFilePath(), arguments); const QString path = VApplication::PuzzleFilePath();
qDebug("Opening Puzzle: path = %s.", qUtf8Printable(path));
VApplication::StartDetachedProcess(path, arguments);
} }
else else
{ {
@ -4343,7 +4349,9 @@ void MainWindow::on_actionUpdateManualLayout_triggered()
rldFile.setAutoRemove(false); rldFile.setAutoRemove(false);
VApplication::StartDetachedProcess(VApplication::PuzzleFilePath(), arguments); const QString path = VApplication::PuzzleFilePath();
qDebug("Opening Puzzle: path = %s.", qUtf8Printable(path));
VApplication::StartDetachedProcess(path, arguments);
} }
else else
{ {
@ -5232,7 +5240,9 @@ void MainWindow::ActionOpenTape_triggered()
arguments.append("--"_L1 + LONG_OPTION_NO_HDPI_SCALING); arguments.append("--"_L1 + LONG_OPTION_NO_HDPI_SCALING);
} }
VApplication::StartDetachedProcess(VApplication::TapeFilePath(), arguments); const QString path = VApplication::TapeFilePath();
qDebug("Opening Tape: path = %s.", qUtf8Printable(path));
VApplication::StartDetachedProcess(path, arguments);
} }
//--------------------------------------------------------------------------------------------------------------------- //---------------------------------------------------------------------------------------------------------------------
@ -6363,7 +6373,9 @@ auto MainWindow::LoadPattern(QString fileName, const QString &customMeasureFile)
arguments.append("--"_L1 + LONG_OPTION_NO_HDPI_SCALING); arguments.append("--"_L1 + LONG_OPTION_NO_HDPI_SCALING);
} }
VApplication::StartDetachedProcess(VApplication::TapeFilePath(), arguments); const QString path = VApplication::TapeFilePath();
qDebug("Opening Tape: path = %s.", qUtf8Printable(path));
VApplication::StartDetachedProcess(path, arguments);
QCoreApplication::exit(V_EX_OK); QCoreApplication::exit(V_EX_OK);
return false; // stop continue processing return false; // stop continue processing
} }
@ -6392,7 +6404,9 @@ auto MainWindow::LoadPattern(QString fileName, const QString &customMeasureFile)
arguments.append("--known"_L1); arguments.append("--known"_L1);
} }
VApplication::StartDetachedProcess(VApplication::TapeFilePath(), arguments); const QString path = VApplication::TapeFilePath();
qDebug("Opening Tape: path = %s.", qUtf8Printable(path));
VApplication::StartDetachedProcess(path, arguments);
QCoreApplication::exit(V_EX_OK); QCoreApplication::exit(V_EX_OK);
return false; // stop continue processing return false; // stop continue processing
} }
@ -6407,7 +6421,9 @@ auto MainWindow::LoadPattern(QString fileName, const QString &customMeasureFile)
arguments.append("--"_L1 + LONG_OPTION_NO_HDPI_SCALING); arguments.append("--"_L1 + LONG_OPTION_NO_HDPI_SCALING);
} }
VApplication::StartDetachedProcess(VApplication::PuzzleFilePath(), arguments); const QString path = VApplication::PuzzleFilePath();
qDebug("Opening Puzzle: path = %s.", qUtf8Printable(path));
VApplication::StartDetachedProcess(path, arguments);
QCoreApplication::exit(V_EX_OK); QCoreApplication::exit(V_EX_OK);
return false; // stop continue processing return false; // stop continue processing
} }