mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-21 21:17:49 +02:00
handle (un)installing Extra Resolutions mod
This commit is contained in:
parent
d06977ecbb
commit
42ea458ccf
@ -300,6 +300,9 @@ bool CModManager::doInstallMod(QString modname, QString archivePath)
|
||||
loadMods();
|
||||
modList->reloadRepositories();
|
||||
|
||||
if(modname == extraResolutionsMod)
|
||||
sendExtraResolutionsEnabledChanged(true);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -320,6 +323,9 @@ bool CModManager::doUninstallMod(QString modname)
|
||||
loadMods();
|
||||
modList->reloadRepositories();
|
||||
|
||||
if(modname == extraResolutionsMod)
|
||||
sendExtraResolutionsEnabledChanged(false);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user