Browse Source

Slight refactoring

CPKreuz 1 year ago
parent
commit
0f8079ce36

+ 1 - 1
src/PixiEditor.Extensions.CommonApi/UserPreferences/Settings/Setting.cs

@@ -35,7 +35,7 @@ public abstract class Setting<T> : INotifyPropertyChanged
 
     /// <param name="name">The name of the preference</param>
     /// <param name="fallbackValue">The value used if the preference has not been set before</param>
-    public Setting(string name, T? fallbackValue = default)
+    protected Setting(string name, T? fallbackValue = default)
     {
         Name = name;
         FallbackValue = fallbackValue;

+ 1 - 1
src/PixiEditor.Extensions.CommonApi/UserPreferences/Settings/SyncedSetting.cs

@@ -1,7 +1,7 @@
 namespace PixiEditor.Extensions.CommonApi.UserPreferences.Settings;
 
 /// <summary>
-/// A preference which may be synced accross multiple devices
+/// A preference which may be synced across multiple devices
 /// </summary>
 /// <param name="name">The name of the preference</param>
 /// <param name="fallbackValue">A optional fallback value which will be used if the setting has not been set before set before</param>