Skip to content

Commit 0e7a9c6

Browse files
authored
[email protected]: hide sidebar config options when sidebar is hidden (#13323)
1 parent 50c9464 commit 0e7a9c6

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

files/usr/share/cinnamon/applets/[email protected]/settings-schema.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"content" : {
66
"type" : "page",
77
"title" : "Content",
8-
"sections" : ["content-places", "content-content"]
8+
"sections" : ["content-content", "content-places"]
99
},
1010
"appearance" : {
1111
"type" : "page",
@@ -39,15 +39,16 @@
3939
"title" : "Panel",
4040
"keys" : ["menu-custom", "menu-icon", "menu-icon-size", "menu-label"]
4141
},
42-
"content-places" : {
43-
"type" : "section",
44-
"title" : "Places",
45-
"keys" : ["show-home", "show-desktop", "show-documents", "show-downloads", "show-music", "show-pictures", "show-videos", "show-bookmarks"]
46-
},
4742
"content-content" : {
4843
"type" : "section",
4944
"title" : "Content",
5045
"keys" : ["show-sidebar", "show-avatar", "show-favorites", "show-recents", "menu-editor-button"]
46+
},
47+
"content-places" : {
48+
"dependency" : "show-sidebar",
49+
"type" : "section",
50+
"title" : "Places",
51+
"keys" : ["show-home", "show-desktop", "show-documents", "show-downloads", "show-music", "show-pictures", "show-videos", "show-bookmarks"]
5152
}
5253
},
5354
"overlay-key" : {
@@ -112,6 +113,7 @@
112113
"description" : "Sidebar"
113114
},
114115
"show-avatar" : {
116+
"dependency" : "show-sidebar",
115117
"type" : "switch",
116118
"default" : true,
117119
"description" : "Avatar"
@@ -185,6 +187,7 @@
185187
"dependency" : "show-sidebar"
186188
},
187189
"sidebar-max-width": {
190+
"dependency" : "show-sidebar",
188191
"type": "spinbutton",
189192
"default": 180,
190193
"min": 130,

0 commit comments

Comments
 (0)