Fix showPassiveNotification call in Account Editor

I hate this thing, I think the standalone account editor was fine, but
it didn't work when I went through account settings. Now that should be
fixed.
This commit is contained in:
Joshua Goins
2025-06-01 04:51:18 +02:00
parent 3d8f724bb1
commit 5ec0b9393e

View File

@@ -138,7 +138,7 @@ FormCard.FormCardPage {
icon.name: "document-save-symbolic"
onClicked: {
if (!root.connection.setAvatar(avatar.source)) {
showPassiveNotification("The Avatar could not be set");
(root.Window.window as Kirigami.ApplicationWindow).showPassiveNotification("The Avatar could not be set");
}
if (root.connection.localUser.displayName !== name.text) {
root.connection.localUser.rename(name.text);