Qt: Preserve portable mode when restarting after AppImage updates

This commit is contained in:
Vishrut Sachan authored and Ty committed 2026-11-26 09:38:23 -05:00
1 parent d20a95c389
commit 6bd0a8df89
1 file changed
+5 -1
+5 -1
View File
@@ -753,9 +753,13 @@ bool AutoUpdaterDialog::processUpdate(const std::vector<u8>& data, QProgressDial
}
// Execute new appimage.
QStringList arguments{QStringLiteral("-updatecleanup")};
if (EmuConfig.IsPortableMode)
arguments << QStringLiteral("-portable");
QProcess* new_process = new QProcess();
new_process->setProgram(qappimage_path);
new_process->setArguments(QStringList{QStringLiteral("-updatecleanup")});
new_process->setArguments(arguments);
if (!new_process->startDetached())
{
reportError("Failed to execute new AppImage.");