Skip to content

Commit 4df7694

Browse files
committed
Add listener for AppKitBackend
1 parent 0020599 commit 4df7694

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Sources/AppKitBackend/AppKitBackend.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,14 @@ public final class AppKitBackend: AppBackend {
349349
// Self.scrollBarWidth has changed
350350
action()
351351
}
352+
353+
NotificationCenter.default.addObserver(
354+
forName: .NSSystemTimeZoneDidChange,
355+
object: nil,
356+
queue: .main
357+
) { _ in
358+
action()
359+
}
352360
}
353361

354362
public func computeWindowEnvironment(

0 commit comments

Comments
 (0)