lttng / lttng-scope

A trace viewer and analyzer for LTTng kernel and user space traces
https://lttng.org/beta/#lttng-scope
Eclipse Public License 1.0
28 stars 6 forks source link

Close all windows and terminate application if the main window is closed #53

Closed ghost closed 6 years ago

ghost commented 6 years ago

48 introduced a new view sitting in a separate window. The default JavaFX behaviour is to terminate the application once all windows (Stages) associated with it are closed/hidden.

In our case, since we have a "main" window and one (eventually more?) sub-window, closing the main window should trigger the closing of the other windows and of the complete application. This would require having a window manager of sorts, and having window creation go through that instead of doing (new Stage(...)).show().