brummer10 / Mamba

Virtual Midi keyboard and Midi Live Looper for Jack Audio Connection Kit
BSD Zero Clause License
76 stars 5 forks source link

[discuss] mamba saves GUI state in NSM #45

Closed grammoboy2 closed 2 years ago

grammoboy2 commented 2 years ago

Mamba saves and restore GUI state in NSM when saving a session. This is according to the original Non-Session-Manager (NSM) api.

I didn't fully made my mind up yet about what it is best behavior with regard to show/hide gui in NSM, somehow, it should be simple stupid and consequent. But now Mamba is behaving differently then most other applications.

NSM forks api now hides at launch. This is how plugins do it I think. A standalone application is no plugin though, normally when you start a standalone application, it shows up. That's what people expect.

It might not be bad though, to hide guis by default when opening a session. The default could then still be to show at new client launch. Like I said, I'm undecided at the moment here.

Anyway, for this particular behavior of Mamba, it might be a good thing if users can configure how they want Mamba to behave: save GUI state between session, or show or hide when opening a session.

brummer10 commented 2 years ago

As far I know that's what the NSM api expected. A application UI is hidden by default. The user could then show/hide like it is needed. When you stop a session you could decide if you wish to save the current state or go with the already saved state. Implementing a configure option for this beehive will contradict the session meaning. At least this is what the session manager control, so, such a feature will be better put in the session manager (if needed).