mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-06-15 17:25:26 -04:00
Email library: reset select-mode + selectedUids on open
Was sticking on toggled-on state if the user closed the library while in select-mode — reopening showed the Cancel/X toggle even though no emails were selected. Force-reset state._selectMode and state._selectedUids in openEmailLibrary so each open starts fresh.
This commit is contained in:
@@ -788,6 +788,10 @@ export function openEmailLibrary(opts = {}) {
|
||||
state._libOffset = 0;
|
||||
state._libSearch = '';
|
||||
state._libSearchDraft = '';
|
||||
// Reset select-mode on each open so the toolbar Select button
|
||||
// never opens already-toggled-on after a previous session.
|
||||
state._selectMode = false;
|
||||
if (state._selectedUids) state._selectedUids.clear();
|
||||
state._libSearchPills = [];
|
||||
_libSuggestionCache = null;
|
||||
state._libFilter = 'all';
|
||||
|
||||
Reference in New Issue
Block a user