2 Years Ago
Reload spawn menu when gmod_language changes (#1724) * Run spawnmenu_reload when gmod_language changes * Update spawn menu language switch refreshing logic - The spawn menu needs to be recreated ("refreshed") after a language switch - We SHOULDN'T refresh it if the user has unsaved changes to their spawn list (these would be lost!) - We SHOULDN'T refresh it if the user has the spawn menu open (that would be bad user experience) - But, we SHOULD refresh it if the user saves or reverts any changes and closes the spawn menu - What if the user switches BACK to the original language they were using? Surely, a refresh is not needed now? - No, in this case we should still refresh the spawn menu because some text and labels do actually update during use of the spawn menu and might be left "dirty"