mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-20 18:56:08 +03:00
os: macos lang check should include lang null
This commit is contained in:
@ -21,10 +21,8 @@ pub fn ensureLocale(alloc: std.mem.Allocator) !void {
|
||||
// process.
|
||||
if (comptime builtin.target.isDarwin()) {
|
||||
// Set the lang if it is not set or if its empty.
|
||||
if (lang) |l| {
|
||||
if (l.value.len == 0) {
|
||||
setLangFromCocoa();
|
||||
}
|
||||
if (lang == null or lang.?.value.len == 0) {
|
||||
setLangFromCocoa();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user