From bbdc7f375fdc459c15986a85f5a78c896406ea17 Mon Sep 17 00:00:00 2001 From: Chung Shing Hin Date: Fri, 14 Jun 2024 17:07:16 +0800 Subject: [PATCH] explorer: Fix an issue with switching themes --- CodeApp/Views/TableView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/CodeApp/Views/TableView.swift b/CodeApp/Views/TableView.swift index 22531128..461b272d 100644 --- a/CodeApp/Views/TableView.swift +++ b/CodeApp/Views/TableView.swift @@ -169,6 +169,7 @@ where || context.coordinator.lastTheme?.id != themeManager.currentTheme?.id { uiViewController.setData(data: root) + context.coordinator.lastTheme = themeManager.currentTheme } if let header, header != uiViewController.headerText { uiViewController.setHeaderText(text: header)