1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 11:47:46 +00:00

Fix numProfiles call used in profiles page

This commit is contained in:
Joshua Goins 2024-03-23 12:44:34 -04:00
parent 3feac92a65
commit 2d217df1c6
2 changed files with 2 additions and 2 deletions

View file

@ -39,7 +39,7 @@ public:
Q_INVOKABLE void deleteProfile(Profile *profile); Q_INVOKABLE void deleteProfile(Profile *profile);
[[nodiscard]] QList<Profile *> profiles() const; [[nodiscard]] QList<Profile *> profiles() const;
[[nodiscard]] Q_INVOKABLE int numProfiles() const; [[nodiscard]] int numProfiles() const;
Q_INVOKABLE bool canDelete(Profile *account) const; Q_INVOKABLE bool canDelete(Profile *account) const;

View file

@ -42,7 +42,7 @@ FormCard.FormCardPage {
} }
FormCard.FormDelegateSeparator { FormCard.FormDelegateSeparator {
visible: layout.index + 1 < LauncherCore.profileManager.numProfiles() visible: layout.index + 1 < LauncherCore.profileManager.numProfiles
} }
} }
} }