Ungrab mouse when closing settings with X

This commit is contained in:
timokoesters 2019-06-07 22:23:06 +02:00
parent 3347c54dbb
commit 037fcfe5da
No known key found for this signature in database
GPG Key ID: 356E705610F626D5

View File

@ -566,7 +566,7 @@ impl Hud {
}
settings_window::Event::ToggleDebug => self.show.debug = !self.show.debug,
settings_window::Event::ChangeTab(tab) => self.show.open_setting_tab(tab),
settings_window::Event::Close => self.show.open_windows = Windows::None,
settings_window::Event::Close => self.show.settings(false),
settings_window::Event::AdjustViewDistance(view_distance) => {
events.push(Event::AdjustViewDistance(view_distance));
}