瀏覽代碼

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;
             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)!;
         using Stream? stream = assembly.GetManifestResourceStream (resourceName)!;
 
 
         if (stream is null)
         if (stream is null)