fix(content): preserve instance data and isolate provider caches
This commit is contained in:
1 parent
978fd3e971
commit
9d480f8bfb
11 files changed
+209
-155
No files matched your search
@@ -5,7 +5,6 @@
|
||||
// supports toggling items on/off by renaming files with .disabled suffix,
|
||||
// search filtering, per-instance caching, and directory change detection.
|
||||
// also handles minecraft's formatting codes for colored mod names/descriptions
|
||||
// because apparently mojang thought terminal UIs would need that. thanks guys
|
||||
|
||||
use std::cell::RefCell;
|
||||
use std::collections::{HashMap, HashSet};
|
||||
@@ -1243,7 +1242,6 @@ impl ContentListState {
|
||||
self.entries.insert(pos, entry);
|
||||
}
|
||||
|
||||
// clamp selected
|
||||
if let Some(sel) = self.list_state.selected {
|
||||
if self.entries.is_empty() {
|
||||
self.list_state.selected = None;
|
||||
|
||||
Reference in new issue
Block a user