Fixed Toggle Debug Info from Settings

This commit is contained in:
PersianKnight
2021-03-13 17:38:34 +03:30
parent 0170acb460
commit e3c0ceb9fa

View File

@ -2431,7 +2431,10 @@ impl Hud {
events.push(Event::SctDamageBatch(sct_damage_batch)); events.push(Event::SctDamageBatch(sct_damage_batch));
}, },
settings_window::Event::ToggleHelp => self.show.help = !self.show.help, settings_window::Event::ToggleHelp => self.show.help = !self.show.help,
settings_window::Event::ToggleDebug => self.show.debug = !self.show.debug, settings_window::Event::ToggleDebug => {
self.show.debug = !self.show.debug;
events.push(Event::ToggleDebug(self.show.debug));
},
settings_window::Event::ToggleTips(loading_tips) => { settings_window::Event::ToggleTips(loading_tips) => {
events.push(Event::ToggleTips(loading_tips)); events.push(Event::ToggleTips(loading_tips));
}, },