aboutsummaryrefslogtreecommitdiff
path: root/main/src/windows
diff options
context:
space:
mode:
Diffstat (limited to 'main/src/windows')
-rw-r--r--main/src/windows/preferences_window/account_preferences_subpage.vala3
1 files changed, 1 insertions, 2 deletions
diff --git a/main/src/windows/preferences_window/account_preferences_subpage.vala b/main/src/windows/preferences_window/account_preferences_subpage.vala
index 7a17fbda..660a9aeb 100644
--- a/main/src/windows/preferences_window/account_preferences_subpage.vala
+++ b/main/src/windows/preferences_window/account_preferences_subpage.vala
@@ -144,8 +144,7 @@ public class Dino.Ui.AccountPreferencesSubpage : Adw.NavigationPage {
chooser.add_filter(filter);
chooser.response.connect(() => {
- string uri = chooser.get_file().get_path();
- model.set_avatar_uri(account, uri);
+ model.set_avatar_file(account, chooser.get_file());
});
chooser.show();