conflictions with app

Ok, so my app uses a HUD window as its main window, and the other blank window is just defaulted to not be visible at launch. That’s all fine and dandy, I simply set
on should quit after last window closed to false. Problem. I still want the app to quit when the HUD is closed. If I set the latter to true the app opens and quits right away.The thing is, I have an on idle handler that handles objects in the window so if the hud window is closed it just keeps firing of errors every few seconds. It’s quite the predicament :confused:

So basically I need a way to quit the program when the hud window is closed without using the should quit when last window closed handler. Anyone help me out ? :confused:

This has been solved by Stefan K!
Thanks :smiley:

Hi,

I don’t know if the solution had been posted elsewhere or before in this forum but it would help others greatly if you could post the solution by StefanK instead of just posting “this problem has been solved by StefanK”.

Brevity without substance doesn’t serve the purpose of helping others in this forum who might be interested and/or have the same problem that you have. Otherwise, you could simply just email StefanK and have your problem solved in private instead of baring it in public and then making us guess what the solution was all about.

Hope you can reconsider on behalf of others in this forum.

archseed :slight_smile:

Hi archseed,

indeed Hendo did email me to ask me if I knew a solution.
The solution was quite simple, just to connect the window to the will close handler and perform the quit command there

Terribly sorry guys, I was in a rush, should have waited to post when i had time to post the solution. Thanks Stefan K for posting it anyway :wink:

Hi StefanK,

Thanks for quickly posting the solution. I am sure others in this forum have noted it down. Cheers!
Note to Hendo: It’s alright. You’re guilty as charged (just kidding!).

archseed:)

Nuts, how much to I owe you?

:wink: