Don't let the UI map downloader get out of sync with the updater's config

This commit is contained in:
Dustin Carlino 2021-04-26 14:17:19 -07:00
parent 36427d163c
commit 8ab2d38a97

View File

@ -70,6 +70,12 @@ pub fn prompt_to_download_missing_data<A: AppLike + 'static>(
}
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::<A, Vec<String>>::new(