From df37873b06cdafb8d4bfaa58a81efec1af9d109d Mon Sep 17 00:00:00 2001 From: Lava <34743145+CanglongCl@users.noreply.github.com> Date: Tue, 16 Jan 2024 13:59:42 -0800 Subject: [PATCH] reset selection after window type changes --- Easydict/NewApp/View/SettingView/Tabs/ServiceTab.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Easydict/NewApp/View/SettingView/Tabs/ServiceTab.swift b/Easydict/NewApp/View/SettingView/Tabs/ServiceTab.swift index 6b4262522..5399f9af7 100644 --- a/Easydict/NewApp/View/SettingView/Tabs/ServiceTab.swift +++ b/Easydict/NewApp/View/SettingView/Tabs/ServiceTab.swift @@ -75,6 +75,7 @@ private class ServiceTabViewModel: ObservableObject { didSet { if oldValue != windowType { updateServices() + selectedService = nil } } }