mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
Use CustomMessageBox::selectable
Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
@ -389,11 +389,7 @@ void BaseInstance::setName(QString val)
|
||||
bool BaseInstance::syncInstanceDirName(const QString& newRoot) const
|
||||
{
|
||||
auto oldRoot = instanceRoot();
|
||||
if (oldRoot == newRoot)
|
||||
return true;
|
||||
if (!QFile::rename(oldRoot, newRoot))
|
||||
return false;
|
||||
return true;
|
||||
return oldRoot == newRoot || QFile::rename(oldRoot, newRoot);
|
||||
}
|
||||
|
||||
QString BaseInstance::name() const
|
||||
|
Reference in New Issue
Block a user