Parcourir la source

save language

appflowy il y a 3 ans
Parent
commit
814f9f4c19
1 fichiers modifiés avec 5 ajouts et 1 suppressions
  1. 5 1
      frontend/app_flowy/lib/workspace/application/appearance.dart

+ 5 - 1
frontend/app_flowy/lib/workspace/application/appearance.dart

@@ -32,6 +32,10 @@ class AppearanceSettingModel extends ChangeNotifier with EquatableMixin {
   }
 
   void setLanguage(String language) {
-    // TODO: save the language settings
+    if (setting.language != language) {
+      setting.language = language;
+      notifyListeners();
+      save();
+    }
   }
 }