mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-13 05:37:42 +02:00
@ -161,7 +161,9 @@ bool Resource::enable(EnableAction action)
|
|||||||
path.chop(9);
|
path.chop(9);
|
||||||
} else {
|
} else {
|
||||||
path += ".disabled";
|
path += ".disabled";
|
||||||
path = FS::getUniqueResourceName(path);
|
if (QFile::exists(path)) {
|
||||||
|
path = FS::getUniqueResourceName(path);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!file.rename(path))
|
if (!file.rename(path))
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user