Fixed gamescope switcher's state loading from config

This commit is contained in:
Observer KRypt0n_ 2022-08-08 12:24:50 +02:00
parent 3bb1688e59
commit 6e2ca304ff
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2

View file

@ -285,6 +285,9 @@ impl App {
// Gamemode switching
self.widgets.gamemode_switcher.set_state(config.game.enhancements.gamemode);
// Switch gamescope option
self.widgets.gamescope_switcher.set_state(config.game.enhancements.gamescope.enabled);
// Prepare gamescope settings app
self.widgets.gamescope_app.prepare(status_page)?;