Steam collections (#60)

This commit is contained in:
Philip Kristoffersen
2022-03-26 21:51:56 +01:00
committed by GitHub
parent 8ce3b42ae9
commit a7524400f3
15 changed files with 962 additions and 64 deletions
+4
View File
@@ -61,6 +61,7 @@ fn empty_or_whitespace(input: String) -> Option<String> {
fn update_settings_with_ui_values(settings: &mut Settings, ui: &UserInterface) {
// Steam location
settings.steam.location = empty_or_whitespace(ui.steam_location_input.value());
settings.steam.create_collections = ui.steam_create_collections.value();
// Steamgrid db
settings.steamgrid_db.enabled = ui.enable_steamgrid_db_checkbox.value();
@@ -116,6 +117,9 @@ fn update_ui_with_settings(ui: &mut UserInterface, settings: &Settings) {
.unwrap_or(steam::get_default_location().unwrap_or(String::from(""))),
);
ui.steam_create_collections
.set_value(settings.steam.create_collections);
ui.enable_steamgrid_db_checkbox
.set_value(settings.steamgrid_db.enabled);
ui.steamgrid_db_auth_key_input.set_value(