[MIRROR] Makes the GAS system only update the icon when it has changed (#4924)

* Makes the GAS system only update the icon when it has changed (#58337)

* Makes the GAS system only update the icon when it has changed

Co-authored-by: Emmett Gaines <ninjanomnom@gmail.com>
This commit is contained in:
SkyratBot
2021-04-15 17:22:45 +02:00
committed by GitHub
parent e7dd23768e
commit acdbc8a6c4
7 changed files with 57 additions and 44 deletions
+2 -2
View File
@@ -70,8 +70,8 @@
split_colors[group] = new_color
refresh_preview()
if("apply")
target.greyscale_colors = split_colors.Join()
target.update_appearance()
target.greyscale_colors = "" // We do this to force an update, in some cases it will think nothing changed when it should be refreshing
target.set_greyscale_colors(split_colors)
if("refresh_file")
SSgreyscale.RefreshConfigsFromFile()
refresh_preview()