mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Removes preference datum caching
This commit is contained in:
@@ -54,9 +54,8 @@ SUBSYSTEM_DEF(changelog)
|
||||
/datum/controller/subsystem/changelog/proc/UpdatePlayerChangelogDate(client/C)
|
||||
if(!ss_ready)
|
||||
return // Only return here, we dont have to worry about a queue list because this will be called from ShowChangelog()
|
||||
// Technically this is only for the date but we can also do the UI button at the same time
|
||||
var/datum/preferences/P = GLOB.preferences_datums[C.ckey]
|
||||
if(P.toggles & PREFTOGGLE_UI_DARKMODE)
|
||||
|
||||
if(C.prefs.toggles & PREFTOGGLE_UI_DARKMODE)
|
||||
winset(C, "rpane.changelog", "background-color=#40628a;font-color=#ffffff;font-style=none")
|
||||
else
|
||||
winset(C, "rpane.changelog", "background-color=none;font-style=none")
|
||||
|
||||
@@ -28,9 +28,4 @@
|
||||
return query
|
||||
|
||||
/datum/client_login_processor/load_preferences/process_result(datum/db_query/Q, client/C)
|
||||
C.prefs = GLOB.preferences_datums[C.ckey]
|
||||
if(!C.prefs)
|
||||
C.prefs = new /datum/preferences(C, Q)
|
||||
GLOB.preferences_datums[C.ckey] = C.prefs
|
||||
else
|
||||
C.prefs.parent = C
|
||||
C.prefs = new /datum/preferences(C, Q)
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
GLOBAL_LIST_EMPTY(preferences_datums)
|
||||
GLOBAL_PROTECT(preferences_datums) // These feel like something that shouldnt be fucked with
|
||||
|
||||
GLOBAL_LIST_INIT(special_role_times, list( //minimum age (in days) for accounts to play these roles
|
||||
ROLE_PAI = 0,
|
||||
ROLE_POSIBRAIN = 0,
|
||||
|
||||
Reference in New Issue
Block a user