Skip to content

Commit

Permalink
hide recent-sessions-panel initially
Browse files Browse the repository at this point in the history
  • Loading branch information
Wisser committed May 5, 2021
1 parent 21c2c8c commit e6863f5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/main/gui/net/sf/jailer/ui/DataModelManagerDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ private void initRestoreLastSessionButton() {
final List<BookmarkId> lastSessions = UISettings.restoreLastSessions(module);
if (lastSessions == null || lastSessions.isEmpty()) {
restoreButton.setEnabled(false);
resentSessionsComboBox.setVisible(false);
hideRecentSessionsPanel();
dummyLabel.setVisible(true);
return;
}
Expand Down Expand Up @@ -477,7 +477,7 @@ public void actionPerformed(ActionEvent e) {
}
if (model.isEmpty()) {
restoreButton.setEnabled(false);
resentSessionsComboBox.setVisible(false);
hideRecentSessionsPanel();
dummyLabel.setVisible(true);
return;
}
Expand Down Expand Up @@ -517,6 +517,13 @@ public void itemStateChanged(ItemEvent e) {
resentSessionsComboBox.setToolTipText(model.get(0).replace("&nbsp;-&nbsp;", "<br>"));
}

private void hideRecentSessionsPanel() {
resentSessionsComboBox.setVisible(false);
jPanel11.setVisible(false);
jPanel12.setVisible(false);
jTabbedPane1.setBorder(null);
}

private final List<BookmarksPanel.BookmarkId> bookmarks = new ArrayList<BookmarksPanel.BookmarkId>();
private final Map<BookmarksPanel.BookmarkId, DbConnectionDialog.ConnectionInfo> ciOfBookmark = new HashMap<BookmarksPanel.BookmarkId, DbConnectionDialog.ConnectionInfo>();
public static boolean lastSessionRestored = false;
Expand Down

0 comments on commit e6863f5

Please sign in to comment.