File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,10 @@ struct SushitrainApp: App {
188188 NSApp . activate ( ignoringOtherApps: true )
189189 }
190190 . commands {
191+ CommandGroup ( after: . sidebar) {
192+ Toggle ( " Hide dotfiles " , isOn: appState. userSettings. $dotFilesHidden)
193+ }
194+
191195 CommandGroup ( replacing: CommandGroupPlacement . appInfo) {
192196 Button (
193197 action: {
Original file line number Diff line number Diff line change @@ -527,6 +527,11 @@ private struct BrowserItemsView: View {
527527 . task ( id: self . folder. folderStateForUpdating) {
528528 await self . reload ( )
529529 }
530+ . onChange ( of: appState. userSettings. dotFilesHidden) {
531+ Task {
532+ await self . reload ( )
533+ }
534+ }
530535 . onChange ( of: self . folder. folderStateForUpdating) {
531536 Task {
532537 await self . reload ( )
You can’t perform that action at this time.
0 commit comments