diff --git a/BeWo/Converter/UserPermission2BoolConverter.cs b/BeWo/Converter/UserPermission2BoolConverter.cs index cf5c73043..eea34e3cd 100644 --- a/BeWo/Converter/UserPermission2BoolConverter.cs +++ b/BeWo/Converter/UserPermission2BoolConverter.cs @@ -14,6 +14,11 @@ namespace BeWo.Converter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { +#if DEBUG + if (BeWoApp.IsInDesignMode) + return true; +#endif + try { if (value is UserRightType type) @@ -36,6 +41,9 @@ namespace BeWo.Converter if (setting == SettingsKeys.ShowGkvBzUrbelege) return BeWoApp.Mandator.ShowGkvBzUrbelege; + + if (setting == SettingsKeys.ShowAI) + return BeWoApp.AppSettings.ShowAI; } } catch (Exception) diff --git a/BeWo/View/Detail/AI/AiPromptbausteinComplexTreeView.xaml b/BeWo/View/Detail/AI/AiPromptbausteinComplexTreeView.xaml index f36c2b3c9..bc466f8e2 100644 --- a/BeWo/View/Detail/AI/AiPromptbausteinComplexTreeView.xaml +++ b/BeWo/View/Detail/AI/AiPromptbausteinComplexTreeView.xaml @@ -53,25 +53,6 @@ Grid.Column="2" HorizontalAlignment="Right" Orientation="Horizontal"> - - -