Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep table tree open when refreshing table list #16

Open
magnetik opened this issue Nov 23, 2017 · 4 comments
Open

Keep table tree open when refreshing table list #16

magnetik opened this issue Nov 23, 2017 · 4 comments

Comments

@magnetik
Copy link

When create new tables, I often fresh the structure of all tables by pressing F5.
This enhancement was on HeidiSQL forum and +1ed twice (https://www.heidisql.com/forum.php?t=21627#p24206)

Expected behavior

When the database is selected and you press F5, the list is refreshed without having to do an extra operation

Current ehavior

When the database is selected and you press F5, all the table list is collapsed and it forces you to reopen it.

Steps to reproduce

  1. Select a database
  2. Press F5
@ansgarbecker
Copy link
Collaborator

Absolutely reasonable.

Based on the forum threads, I already spent a couple of hours with non working approaches for keeping the db open, re-opening it after the refresh, re-opening it with a timer-hit etc. Nothing worked so far without a crash. The issue sounds easy to solve but it definitely isn't. Mostly due to existing complexity and interlocked events trying to read and write data behind the tree nodes.

Keeping this issue open probably brings up new ideas for solving that.

@rentalhost
Copy link
Contributor

Possible additional solution: when tree is opened and db is selected, jump first to some db table (like first one) and refresh on it (once that refresh with a table will not close the db tree, and seems that it will do the same effect, once that the query is the same).

@penCsharpener
Copy link

I'd like to upvote this but I understand from reading this thread that it might be complex to implement.
I'm sure you have tried a boolean IsRefreshing that is set to true to prevent some background stuff to happening.
If you can track which dbs are uncollapsed, couldn't you loop through them after refreshing and open them again. I mostly work with C# and WinForms but I'm trying to understand this anyway.

@Screapy
Copy link

Screapy commented Jul 16, 2019

Is this the same situation, when I delete a table and the table tree is collapsed?
(And not open anymore)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants