Sfoglia il codice sorgente

Commentary about trim incompatibility

Brandon Thetford 1 anno fa
parent
commit
2ccf14e13d
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  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)