mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-05-28 21:00:20 +02:00
Remove redundant assignment
Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
parent
bc1d1b41c0
commit
d9c9eb6521
@ -57,7 +57,6 @@ void createInstanceShortcut(const Shortcut& shortcut, const QString& filePath)
|
|||||||
QString iconPath;
|
QString iconPath;
|
||||||
QStringList args;
|
QStringList args;
|
||||||
#if defined(Q_OS_MACOS)
|
#if defined(Q_OS_MACOS)
|
||||||
appPath = QApplication::applicationFilePath();
|
|
||||||
if (appPath.startsWith("/private/var/")) {
|
if (appPath.startsWith("/private/var/")) {
|
||||||
QMessageBox::critical(shortcut.parent, QObject::tr("Create Shortcut"),
|
QMessageBox::critical(shortcut.parent, QObject::tr("Create Shortcut"),
|
||||||
QObject::tr("The launcher is in the folder it was extracted from, therefore it cannot create shortcuts."));
|
QObject::tr("The launcher is in the folder it was extracted from, therefore it cannot create shortcuts."));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user