mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-09-14 18:01:58 +00:00
macOS: use the same default BellFeatures as config
This commit is contained in:
@@ -128,10 +128,10 @@ extension Ghostty {
|
||||
/// due to the embedded library and Swift.
|
||||
|
||||
var bellFeatures: BellFeatures {
|
||||
guard let config = self.config else { return .init() }
|
||||
guard let config = self.config else { return .defaultValue }
|
||||
var v: CUnsignedInt = 0
|
||||
let key = "bell-features"
|
||||
guard ghostty_config_get(config, &v, key, UInt(key.lengthOfBytes(using: .utf8))) else { return .init() }
|
||||
guard ghostty_config_get(config, &v, key, UInt(key.lengthOfBytes(using: .utf8))) else { return .defaultValue }
|
||||
return .init(rawValue: v)
|
||||
}
|
||||
|
||||
@@ -810,6 +810,8 @@ extension Ghostty.Config {
|
||||
static let attention = BellFeatures(rawValue: 1 << 2)
|
||||
static let title = BellFeatures(rawValue: 1 << 3)
|
||||
static let border = BellFeatures(rawValue: 1 << 4)
|
||||
|
||||
static let defaultValue = BellFeatures([.attention, .title])
|
||||
}
|
||||
|
||||
struct SplitPreserveZoom: OptionSet {
|
||||
|
||||
Reference in New Issue
Block a user