mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-14 00:04:15 +09:00
fix: fixed duplicating the clocks in the popup view when only the local clock is presented
This commit is contained in:
@@ -105,8 +105,9 @@ public class Clock: Module {
|
||||
|
||||
extension Clock {
|
||||
static let title: String = "Clock"
|
||||
static let localID: String = UUID().uuidString
|
||||
static var local: Clock_t {
|
||||
Clock_t(name: localizedString("Local time"), format: "yyyy-MM-dd HH:mm:ss", tz: "local")
|
||||
Clock_t(id: Clock.localID, name: localizedString("Local time"), format: "yyyy-MM-dd HH:mm:ss", tz: "local")
|
||||
}
|
||||
static var zones: [KeyValue_t] {
|
||||
[
|
||||
|
||||
Reference in New Issue
Block a user