Use CustomMessageBox::selectable

Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
Yihe Li
2025-03-31 07:11:05 +08:00
parent 02ca6bea8c
commit da007d6212
4 changed files with 15 additions and 17 deletions

View File

@ -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