From cced7de032102832aae84cf9341fc0ade00f6857 Mon Sep 17 00:00:00 2001 From: Serhiy Mytrovtsiy Date: Sat, 7 Oct 2023 22:50:38 +0200 Subject: [PATCH] fix: fixed duplicating the clocks in the popup view when only the local clock is presented --- Modules/Clock/main.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Modules/Clock/main.swift b/Modules/Clock/main.swift index c39febdd..bd4d96b7 100644 --- a/Modules/Clock/main.swift +++ b/Modules/Clock/main.swift @@ -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] { [