mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-28 14:37:27 +01:00
Merge pull request #16288 from ShadowLarkens/noflash
Make chat not flash on pref reload
This commit is contained in:
@@ -11,12 +11,16 @@
|
||||
savefile_identifier = PREFERENCE_PLAYER
|
||||
|
||||
/datum/preference/toggle/vchat_enable/apply_to_client(client/client, value)
|
||||
var/before = client.tgui_panel.oldchat
|
||||
if(value)
|
||||
client.tgui_panel.oldchat = FALSE
|
||||
else
|
||||
client.tgui_panel.oldchat = TRUE
|
||||
|
||||
client.nuke_chat()
|
||||
// If something actually changed, reload chat
|
||||
if(before != client.tgui_panel.oldchat)
|
||||
client.nuke_chat()
|
||||
|
||||
|
||||
/datum/preference/toggle/tgui_say
|
||||
category = PREFERENCE_CATEGORY_GAME_PREFERENCES
|
||||
|
||||
Reference in New Issue
Block a user