Fix warning about not registered Presence type

This commit is contained in:
Nicolas Werner 2020-06-11 18:37:09 +02:00
parent 488924c9b3
commit db93e6b853
2 changed files with 3 additions and 1 deletions

View file

@ -49,7 +49,6 @@
UserSettings::UserSettings()
{
qRegisterMetaType<UserSettings::Presence>();
load();
}

View file

@ -104,6 +104,9 @@ createCacheDirectory()
int
main(int argc, char *argv[])
{
// needed for settings so need to register before any settings are read to prevent warings
qRegisterMetaType<UserSettings::Presence>();
#if defined(Q_OS_LINUX) || defined(Q_OS_WIN) || defined(Q_OS_FREEBSD)
if (qgetenv("QT_SCALE_FACTOR").size() == 0) {
float factor = utils::scaleFactor();