dbeaver / dbeaver

Free universal database tool and SQL client
https://dbeaver.io
Apache License 2.0
40.43k stars 3.49k forks source link

Detached script/editor not obeying file menu commands #17092

Open Montgomeryz opened 2 years ago

Montgomeryz commented 2 years ago

System information:

Describe the problem you're observing:

When a detached script window is active, file commands from the menu are done on the last active attached script, which is obviously not ideal.

Steps to reproduce, if exist:

Open two scripts, detach one of them. Make sure the detached script is the 'active window', go to the file menu and save as 'test'.. You will find that the file saved is the attached script, not the detached one.

Matvey16 commented 2 years ago

@Montgomeryz Thank you for the report. The problem is that the detached editor behaves like a separate window and doesn't have any menu commands at all (it can be seen on MacOS better that when you focus on detached editor, menu commands just disappear), so when you use file menu it works as intended because that menu is not associated with detached window. We will see if menu commands could be added to detached windows.