mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 03:18:49 +03:00
Fix warning about not registered Presence type
This commit is contained in:
parent
488924c9b3
commit
db93e6b853
2 changed files with 3 additions and 1 deletions
|
@ -49,7 +49,6 @@
|
||||||
|
|
||||||
UserSettings::UserSettings()
|
UserSettings::UserSettings()
|
||||||
{
|
{
|
||||||
qRegisterMetaType<UserSettings::Presence>();
|
|
||||||
load();
|
load();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -104,6 +104,9 @@ createCacheDirectory()
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
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 defined(Q_OS_LINUX) || defined(Q_OS_WIN) || defined(Q_OS_FREEBSD)
|
||||||
if (qgetenv("QT_SCALE_FACTOR").size() == 0) {
|
if (qgetenv("QT_SCALE_FACTOR").size() == 0) {
|
||||||
float factor = utils::scaleFactor();
|
float factor = utils::scaleFactor();
|
||||||
|
|
Loading…
Reference in a new issue