mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-22 11:39:55 +00:00
GH-887 fix patch file removal
This commit is contained in:
@@ -99,10 +99,14 @@ bool MinecraftProfile::canRemove(const int index) const
|
||||
bool MinecraftProfile::remove(const int index)
|
||||
{
|
||||
if (!canRemove(index))
|
||||
{
|
||||
qDebug() << "Patch" << index << "is non-removable";
|
||||
return false;
|
||||
}
|
||||
|
||||
if(!m_strategy->removePatch(VersionPatches.at(index)))
|
||||
{
|
||||
qCritical() << "Patch" << index << "could not be removed";
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user