From abc08e6bdedb452177c9dced0de31cc3b1efff78 Mon Sep 17 00:00:00 2001 From: Usman Shafiq Date: Wed, 23 Mar 2022 22:39:21 -0400 Subject: [PATCH] Preventing redundency in SetGlobalTheme --- WinformThemer.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/WinformThemer.cs b/WinformThemer.cs index fd13f3c6..a4749fd9 100644 --- a/WinformThemer.cs +++ b/WinformThemer.cs @@ -22,6 +22,9 @@ namespace VRCX /// public static void SetGlobalTheme(int theme) { + if(currentTheme == theme) + return; + currentTheme = theme; List
forms = new List();