From 4ae43659bc18453af0ad59978ebab8a21305b306 Mon Sep 17 00:00:00 2001 From: Thorsten Sommer Date: Sat, 27 Jul 2024 12:48:56 +0200 Subject: [PATCH] Added regions to structure the settings --- .../Settings/DataModel/Data.cs | 34 ++++++++++++++----- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/app/MindWork AI Studio/Settings/DataModel/Data.cs b/app/MindWork AI Studio/Settings/DataModel/Data.cs index 6a1711e9..de351536 100644 --- a/app/MindWork AI Studio/Settings/DataModel/Data.cs +++ b/app/MindWork AI Studio/Settings/DataModel/Data.cs @@ -23,16 +23,13 @@ public sealed class Data /// public uint NextProviderNum { get; set; } = 1; + #region App Settings + /// /// Should we save energy? When true, we will update content streamed /// from the server, i.e., AI, less frequently. /// public bool IsSavingEnergy { get; set; } - - /// - /// Shortcuts to send the input to the AI. - /// - public SendBehavior ShortcutSendBehavior { get; set; } = SendBehavior.MODIFER_ENTER_IS_SENDING; /// /// Should we enable spellchecking for all input fields? @@ -44,6 +41,24 @@ public sealed class Data /// public UpdateBehavior UpdateBehavior { get; set; } = UpdateBehavior.ONCE_STARTUP; + /// + /// The navigation behavior. + /// + public NavBehavior NavigationBehavior { get; set; } = NavBehavior.EXPAND_ON_HOVER; + + #endregion + + #region Chat Settings + + /// + /// Shortcuts to send the input to the AI. + /// + public SendBehavior ShortcutSendBehavior { get; set; } = SendBehavior.MODIFER_ENTER_IS_SENDING; + + #endregion + + #region Workspace Settings + /// /// The chat storage behavior. /// @@ -54,11 +69,10 @@ public sealed class Data /// public WorkspaceStorageTemporaryMaintenancePolicy WorkspaceStorageTemporaryMaintenancePolicy { get; set; } = WorkspaceStorageTemporaryMaintenancePolicy.DELETE_OLDER_THAN_90_DAYS; - /// - /// The navigation behavior. - /// - public NavBehavior NavigationBehavior { get; set; } = NavBehavior.EXPAND_ON_HOVER; + #endregion + #region Assiatant: Icon Finder Settings + /// /// Do we want to preselect an icon source? /// @@ -73,4 +87,6 @@ public sealed class Data /// The preselected icon provider. /// public string PreselectedIconProvider { get; set; } = string.Empty; + + #endregion } \ No newline at end of file