Преглед на файлове

Commentary about trim incompatibility

Brandon Thetford преди 1 година
родител
ревизия
2ccf14e13d
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      Terminal.Gui/Configuration/SettingsScope.cs

+ 3 - 0
Terminal.Gui/Configuration/SettingsScope.cs

@@ -118,6 +118,9 @@ public class SettingsScope : Scope<SettingsScope>
             return this;
         }
 
+        // BUG: Not trim-compatible
+        // Not a bug, per se, but it's easily fixable by just loading the file.
+        // Defaults can just be field initializers for involved types.
         using Stream? stream = assembly.GetManifestResourceStream (resourceName)!;
 
         if (stream is null)