feat(modpacks): manage installed pack versions
This commit is contained in:
1 parent
16e2f3204d
commit
a839925041
13 files changed
+301
-67
No files matched your search
@@ -79,6 +79,7 @@ impl App {
|
||||
}
|
||||
}
|
||||
if load_content {
|
||||
let has_modpack_update = self.instances_state.selected_modpack_update().is_some();
|
||||
widgets::content::render(
|
||||
frame,
|
||||
main_chunks[1],
|
||||
@@ -86,6 +87,7 @@ impl App {
|
||||
self.content_tab,
|
||||
self.content_mode,
|
||||
self.instances_state.selected_instance(),
|
||||
has_modpack_update,
|
||||
&mut self.mods_state,
|
||||
&mut self.mods_discovery_state,
|
||||
&mut self.resource_packs_state,
|
||||
@@ -183,6 +185,15 @@ impl App {
|
||||
widgets::content::update::render(frame, update, &self.picker);
|
||||
}
|
||||
|
||||
if let Some(state) = self.modpack_versions_state.as_mut() {
|
||||
widgets::content::tabs::render_version_popup(
|
||||
frame,
|
||||
main_chunks[1],
|
||||
state,
|
||||
&self.picker,
|
||||
);
|
||||
}
|
||||
|
||||
if let Some(update) = &self.modpack_update_popup {
|
||||
widgets::popups::modpack_update::render(frame, update);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user