diff --git a/launcher/icons/MMCIcon.cpp b/launcher/icons/MMCIcon.cpp index 54d32b63..4944ad54 100644 --- a/launcher/icons/MMCIcon.cpp +++ b/launcher/icons/MMCIcon.cpp @@ -17,6 +17,8 @@ #include #include +QIcon logoIcon = QIcon(":/logo.svg"); + IconType operator--(IconType &t, int) { IconType temp = t; @@ -25,11 +27,8 @@ IconType operator--(IconType &t, int) case IconType::Builtin: t = IconType::ToBeDeleted; break; - case IconType::Transient: - t = IconType::Builtin; - break; case IconType::FileBased: - t = IconType::Transient; + t = IconType::Builtin; break; default: { @@ -63,7 +62,7 @@ QIcon MMCIcon::icon() const } if(m_current_type == IconType::Builtin && m_key == "logo") { - return QIcon(":/logo.svg"); + return logoIcon; } auto & icon = m_images[m_current_type].icon; if(!icon.isNull()) diff --git a/launcher/icons/MMCIcon.h b/launcher/icons/MMCIcon.h index 13d99318..05109c2f 100644 --- a/launcher/icons/MMCIcon.h +++ b/launcher/icons/MMCIcon.h @@ -21,7 +21,6 @@ enum IconType : unsigned { Builtin, - Transient, FileBased, ICONS_TOTAL, ToBeDeleted