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

This commit is contained in:
Emmett Gaines
2021-04-15 02:02:26 -04:00
committed by GitHub
parent 692abdcd0b
commit db55157169
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()