diff --git a/launcher/include/profilemanager.h b/launcher/include/profilemanager.h index c36e604..324d87d 100644 --- a/launcher/include/profilemanager.h +++ b/launcher/include/profilemanager.h @@ -39,7 +39,7 @@ public: Q_INVOKABLE void deleteProfile(Profile *profile); [[nodiscard]] QList profiles() const; - [[nodiscard]] Q_INVOKABLE int numProfiles() const; + [[nodiscard]] int numProfiles() const; Q_INVOKABLE bool canDelete(Profile *account) const; diff --git a/launcher/ui/Settings/ProfilesPage.qml b/launcher/ui/Settings/ProfilesPage.qml index 570c615..3cf5dd1 100644 --- a/launcher/ui/Settings/ProfilesPage.qml +++ b/launcher/ui/Settings/ProfilesPage.qml @@ -42,7 +42,7 @@ FormCard.FormCardPage { } FormCard.FormDelegateSeparator { - visible: layout.index + 1 < LauncherCore.profileManager.numProfiles() + visible: layout.index + 1 < LauncherCore.profileManager.numProfiles } } }