mirror of
https://github.com/neon443/ShhShell.git
synced 2026-11-30 20:54:51 +00:00
fix font size being 0 fi not set, fixing another crash
This commit is contained in:
1 parent
2363d613bf
commit
cddec4d705
1 file changed
+3
@@ -46,6 +46,9 @@ class HostsManager: ObservableObject, @unchecked Sendable {
|
||||
userDefaults.synchronize()
|
||||
self.selectedFont = userDefaults.string(forKey: "selectedFontName") ?? "SF Mono"
|
||||
self.fontSize = CGFloat(userDefaults.double(forKey: "fontSize"))
|
||||
if self.fontSize == 0 {
|
||||
self.fontSize = 12
|
||||
}
|
||||
}
|
||||
|
||||
func selectFont(_ fontName: String) {
|
||||
|
||||