GH-1559 Fix FTB icons

This was caused by separation of GUI and logic. Now logic has an interface that GUI implements.
It should be expanded upon later.
This commit is contained in:
Petr Mrázek
2016-05-03 00:27:28 +02:00
parent c50b3cdeec
commit e1a530f84d
10 changed files with 86 additions and 52 deletions

View File

@ -344,6 +344,7 @@ void MultiMC::initIcons()
{
m_icons->directoryChanged(value.toString());
});
ENV.registerIconList(m_icons);
}

View File

@ -346,8 +346,8 @@ void SaveIcon(InstancePtr m_instance)
bool saveIcon = false;
switch(mmcIcon->type())
{
case MMCIcon::FileBased:
case MMCIcon::Transient:
case IconType::FileBased:
case IconType::Transient:
saveIcon = true;
default:
break;