fix(launcher): focus emulator window on launch

This commit is contained in:
nmzik
2026-08-04 02:51:11 +02:00
parent 1da99a0671
commit a3a00464bc
2 changed files with 3 additions and 11 deletions
+1 -11
View File
@@ -42,9 +42,7 @@ constexpr char EMULATOR_EXE[] = "kyty_emulator.exe";
constexpr char EMULATOR_EXE[] = "kyty_emulator";
#endif
#if defined(_WIN32)
constexpr char CMD_EXE[] = "cmd.exe";
#elif defined(__linux__)
#if defined(__linux__)
constexpr char KYTY_BASH_FILE[] = "kyty_run.sh";
#endif
#if defined(_WIN32)
@@ -360,14 +358,6 @@ void MainDialog::RunInterpreter(QProcess* process, const Configuration& info) {
process->setArguments({QStringLiteral("-c"), bash_file_name});
}
}
#elif defined(_WIN32)
{
process->setProgram(CMD_EXE);
QStringList process_args;
process_args << QStringLiteral("/K") << interpreter;
process_args += args;
process->setArguments(process_args);
}
#else
process->setProgram(interpreter);
process->setArguments(args);