fix: reload editor saves and reject stale TUI actions

This commit is contained in:
objz committed 2026-10-01 23:25:43 +02:00
1 parent eb53c7164e
commit 9cd454cee2
33 files changed
+2297 -638

No files matched your search

+2 -3
View File
@@ -597,7 +597,6 @@ pub fn render(
return;
}
// lazy-load: only scan when switching to an instance that hasn't been loaded yet
match tab {
ContentTab::Mods
| ContentTab::ResourcePacks
@@ -643,8 +642,8 @@ pub fn render(
}
ContentTab::Worlds => {
if let Some(instance) = instance {
if let Some((world_name, world_path)) = open_world_datapacks {
let cache_key = format!("{}:{world_name}", instance.name);
if let Some((_, world_path)) = open_world_datapacks {
let cache_key = format!("{}:{world_path:?}", instance.name);
let content_dir = world_path.join("datapacks");
if world_datapacks_state.loaded_for.as_deref() != Some(cache_key.as_str()) {
world_datapacks_state.start_load(