mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
no need for extra exist check
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@ -163,9 +163,6 @@ bool Resource::enable(EnableAction action)
|
||||
path += ".disabled";
|
||||
path = FS::getUniqueResourceName(path);
|
||||
}
|
||||
if (QFileInfo::exists(path)) { // the path exists so just remove the file at path
|
||||
return false;
|
||||
}
|
||||
if (!file.rename(path))
|
||||
return false;
|
||||
|
||||
|
Reference in New Issue
Block a user