We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06ddd44 commit 4ad5b05Copy full SHA for 4ad5b05
Terminal.Gui/Configuration/SettingsScope.cs
@@ -152,10 +152,12 @@ public class SettingsScope : Scope<SettingsScope>
152
return this;
153
}
154
155
- // BUG: Not trim-compatible
156
- // Not a bug, per se, but it's easily fixable by just loading the file.
157
- // Defaults can just be field initializers for involved types.
158
- using Stream? stream = assembly.GetManifestResourceStream (resourceName)!;
+ using Stream? stream = assembly.GetManifestResourceStream (resourceName);
+
+ if (stream is null)
+ {
159
+ return null;
160
+ }
161
162
return Update (stream, $"resource://[{assembly.GetName ().Name}]/{resourceName}", location);
163
0 commit comments