mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-12-03 19:33:33 +01:00
Qt: Preserve portable mode when restarting after AppImage updates
This commit is contained in:
1 parent
d20a95c389
commit
6bd0a8df89
1 file changed
+5
-1
@@ -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.");
|
||||
|
||||
Reference in new issue
Block a user