From 75455ffc70c024f99677bd42340501271676ae2f Mon Sep 17 00:00:00 2001 From: the_a Date: Sat, 14 Dec 2024 11:57:08 -0500 Subject: [PATCH] Improvements to tabs-open saving --- src/state.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/state.rs b/src/state.rs index 66762c6..3dac5f3 100644 --- a/src/state.rs +++ b/src/state.rs @@ -406,8 +406,6 @@ impl State { self.add_tab(); self.tabs_open.push(Default::default()); - // So these tabs opens on a new program run. - self.save_prefs(); } // todo: Fix this for AB1 loading. @@ -434,6 +432,9 @@ impl State { self.sync_portions(); self.reset_selections(); + + // So these tabs opens on a new program run. + self.save_prefs(); // Save opened tabs. } /// Copy the sequence of the selected text selection, feature or primer to the clipboard, if applicable.