Skip to content

Commit

Permalink
Improvements to tabs-open saving
Browse files Browse the repository at this point in the history
  • Loading branch information
David-OConnor committed Dec 14, 2024
1 parent 75a44d4 commit 75455ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit 75455ff

Please sign in to comment.