From 78e8babffc4149d77caeb04b3098d5eeaf54d62b Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Sat, 23 Mar 2024 12:44:34 -0400 Subject: [PATCH] Fix numProfiles call used in profiles page (cherry picked from commit 2d217df1c69ce1c85042b7a9bb88c22ec2097b48) --- launcher/include/profilemanager.h | 2 +- launcher/ui/Settings/ProfilesPage.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 } } }