From 8ab2d38a97e75ca19b58f5f110cfcea8cfc0f2a9 Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Mon, 26 Apr 2021 14:17:19 -0700 Subject: [PATCH] Don't let the UI map downloader get out of sync with the updater's config --- map_gui/src/tools/updater.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/map_gui/src/tools/updater.rs b/map_gui/src/tools/updater.rs index d5bbf5eff3..ab9c4113b1 100644 --- a/map_gui/src/tools/updater.rs +++ b/map_gui/src/tools/updater.rs @@ -70,6 +70,12 @@ pub fn prompt_to_download_missing_data( } let cities = vec![map_name.to_data_pack_name()]; + + // Adjust the updater's config, in case the user also runs that. + let mut packs = DataPacks::load_or_create(); + packs.runtime.insert(cities[0].clone()); + packs.save(); + let (outer_progress_tx, outer_progress_rx) = futures_channel::mpsc::channel(1000); let (inner_progress_tx, inner_progress_rx) = futures_channel::mpsc::channel(1000); Transition::Replace(FutureLoader::>::new(