GH-796 Icon theme loading workaround
Replacing the Qt machinery with other Qt machinery under our control
This commit is contained in:
@ -21,6 +21,7 @@
|
||||
#include "gui/pages/BasePage.h"
|
||||
|
||||
#include "logic/auth/MojangAccountList.h"
|
||||
#include <MultiMC.h>
|
||||
|
||||
namespace Ui
|
||||
{
|
||||
@ -42,10 +43,10 @@ public:
|
||||
}
|
||||
QIcon icon() const override
|
||||
{
|
||||
auto icon = QIcon::fromTheme("accounts");
|
||||
auto icon = MMC->getThemedIcon("accounts");
|
||||
if(icon.isNull())
|
||||
{
|
||||
icon = QIcon::fromTheme("noaccount");
|
||||
icon = MMC->getThemedIcon("noaccount");
|
||||
}
|
||||
return icon;
|
||||
}
|
||||
|
Reference in New Issue
Block a user