mirror of
https://github.com/vcmi/vcmi.git
synced 2025-07-13 01:20:34 +02:00
handle (un)installing Extra Resolutions mod
This commit is contained in:
@ -300,6 +300,9 @@ bool CModManager::doInstallMod(QString modname, QString archivePath)
|
|||||||
loadMods();
|
loadMods();
|
||||||
modList->reloadRepositories();
|
modList->reloadRepositories();
|
||||||
|
|
||||||
|
if(modname == extraResolutionsMod)
|
||||||
|
sendExtraResolutionsEnabledChanged(true);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -320,6 +323,9 @@ bool CModManager::doUninstallMod(QString modname)
|
|||||||
loadMods();
|
loadMods();
|
||||||
modList->reloadRepositories();
|
modList->reloadRepositories();
|
||||||
|
|
||||||
|
if(modname == extraResolutionsMod)
|
||||||
|
sendExtraResolutionsEnabledChanged(false);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user