Skip to content

Commit

Permalink
Warn when trying to backup empty sessions
Browse files Browse the repository at this point in the history
Closes #98
  • Loading branch information
mastef committed Jun 22, 2020
1 parent b375feb commit cb023eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/TabManager.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1566,6 +1566,10 @@ class TabManager extends React.Component {
});
}
exportSessions() {
if (this.state.sessions.length == 0) {
window.alert("You have currently no windows saved for later. There is nothing to export.");
return;
}
var exportName = "tab-manager-plus-backup";
var today = new Date();
var y = today.getFullYear();
Expand Down

0 comments on commit cb023eb

Please sign in to comment.