Skip to content

Commit 584f52f

Browse files
Disable 'Export All Custom Themes' if custom themes is empty
1 parent 2981547 commit 584f52f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CodeEdit/Features/Settings/Pages/ThemeSettings/ThemeSettingsView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ struct ThemeSettingsView: View {
5353
} label: {
5454
Text("Export All Custom Themes...")
5555
}
56+
.disabled(themeModel.themes.filter { !$0.isBundled }.isEmpty)
5657
}
5758
})
5859
.padding(.horizontal, 5)

0 commit comments

Comments
 (0)