Add show_hidden_files filed to workspace

This commit is contained in:
2024-11-11 22:24:27 +01:00
parent f3f3cb7371
commit bac4702771
4 changed files with 20 additions and 11 deletions

View File

@@ -14,6 +14,7 @@ type Workspace struct {
// Integrated settings
Theme string `json:"theme" validate:"oneof=light dark"`
AutoSave bool `json:"autoSave"`
ShowHiddenFiles bool `json:"showHiddenFiles"`
GitEnabled bool `json:"gitEnabled"`
GitURL string `json:"gitUrl" validate:"required_if=GitEnabled true"`
GitUser string `json:"gitUser" validate:"required_if=GitEnabled true"`
@@ -29,6 +30,7 @@ func (w *Workspace) Validate() error {
func (w *Workspace) GetDefaultSettings() {
w.Theme = "light"
w.AutoSave = false
w.ShowHiddenFiles = false
w.GitEnabled = false
w.GitURL = ""
w.GitUser = ""