Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
No longer save number of private windows on exit. Fixes #1899 (#1902)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluemarvin authored and keianhzo committed Oct 3, 2019
1 parent 62d908a commit abbf602
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public void load(WindowWidget aWindow) {
class WindowsState {
WindowPlacement focusedWindowPlacement = WindowPlacement.FRONT;
ArrayList<WindowState> regularWindowsState = new ArrayList<>();
ArrayList<WindowState> privateWindowsState = new ArrayList<>();
boolean privateMode = false;
}

Expand Down Expand Up @@ -132,11 +131,6 @@ private void saveState() {
windowState.load(window);
state.regularWindowsState.add(windowState);
}
for (WindowWidget window : mPrivateWindows) {
WindowState windowState = new WindowState();
windowState.load(window);
state.privateWindowsState.add(windowState);
}
Gson gson = new GsonBuilder().setPrettyPrinting().create();
gson.toJson(state, writer);

Expand Down Expand Up @@ -578,11 +572,6 @@ private void restoreWindows() {
WindowWidget window = addWindow(windowState);
window.getSessionStack().restore(windowState.sessionStack, windowState.currentSessionId);
}
mPrivateMode = true;
for (WindowState windowState : windowsState.privateWindowsState) {
WindowWidget window = addWindow(windowState);
window.getSessionStack().restore(windowState.sessionStack, windowState.currentSessionId);
}
mPrivateMode = !windowsState.privateMode;
if (windowsState.privateMode) {
enterPrivateMode();
Expand Down

0 comments on commit abbf602

Please sign in to comment.