Postico icon indicating copy to clipboard operation
Postico copied to clipboard

Restore state when window reopen

Open 1st opened this issue 4 years ago • 2 comments

Closed the Postico window with lots of tabs open, to upgrade version of the app. When app was reopen, all open tabs have disappear.

What did you do?

  • Open Postico app
  • Open any connection
  • Click Ctrl + T to open few tabs
  • In each tab open some table, make request, etc (like you do in your work, opening 10 tabs at the same time)
  • Now close the window of the Postico (connection window and then window of the app)
  • Now run the Postico app one more time and open the same connection. You will see that window has its of tables, and all you open tabs from the last session have disappear

What did you expect to happen?

  • When I open the same connection, it should restore the previous session. Like it's in all programs, including MySQL Workbench

What actually happened?

  • When the connection open, it's new session started and all open tabs from the last session disappear

What software versions are you using?

Postico version: 1.14.12 macOS version: Catalina (10.15.4)

PostgreSQL version: 9.6.12

1st avatar Apr 23 '20 13:04 1st

Did you mean Postico 1.5.12? There is no Postico 1.14.12.

If you have a recent version of Postico (1.3.2 or later) the queries in your tabs should automatically restore once you open the tabs again. Queries are saved per tab / per database, so make sure you are connecting to the same db in the same tab to see the query again.

You can also check in the Application Support folder to find autosaved queries. See the docs for details: https://eggerapps.at/postico/docs/v1.5.13/autosaved-queries.html

Finally, I know that Postico's behavior is often surprising, so we are changing it in Postico 2, which is currently in development. Postico 2 shows all your saved queries in the sidebar. You can download a preview version here: https://eggerapps.at/postico2/

jakob avatar Apr 24 '20 06:04 jakob

What have I found is that when I open a new connection - no tabs reopen. But when I select any table - it restores its state to the last used one. My question was about how to reopen all the tabs when I connect to the same saved connection.

I connect to the remote DB that is in the Docker container. But don’t think that it should change behavior of the app because of this.

1st avatar Apr 29 '20 07:04 1st