We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a96af29 commit dcf4049Copy full SHA for dcf4049
1 file changed
OpenBullet2.Native/Views/Pages/Configs.xaml.cs
@@ -232,6 +232,14 @@ private void EditConfig()
232
}
233
234
vm.SelectedConfig = HoveredItem;
235
+
236
+ if (obSettingsService.Settings.GeneralSettings.WarnDangerousConfig
237
+ && HoveredItem.Config.HasCSharpCode())
238
+ {
239
+ Alert.ToastWarning("Potentially dangerous config", "The config you selected might have some C# code in it" +
240
+ " (or blocks that call external programs). Do not run it unless you trust the source.");
241
+ }
242
243
debuggerViewModel.ClearLog();
244
NavigateToConfigSection();
245
0 commit comments