GrandOrgue / grandorgue

GrandOrgue software
Other
172 stars 43 forks source link

Should GOOrganController derive from GOTimer? #1964

Closed rousseldenis closed 3 months ago

rousseldenis commented 3 months ago

@oleg68 During my tests implementation, I saw in logs that GOTimer is tried to be initialized during GOOrganController initilaization.

But, as GOTimer derived from wxTimer, that one requires wxApp to be initialized before (which is not wanted if we want to respect MVC principles).

See:

https://github.com/rousseldenis/grandorgue/actions/runs/10218507851/job/28274772479#step:6:26

image

I've read that wxTimer in that case should be static.

Do you have an idea or an example in which manner I could solve that ?

Many thanks

rousseldenis commented 3 months ago

(which is not wanted if we want to respect MVC principles).

In fact, this is more about being able to launch the controller without having to launch the application object.