However, I have an issue with the Kaju new version opening if the app is in full screen. In this case the window opens but is behind the main window. This means that the user never sees the update window and, therefore, does not know there is a new update available.
Interesting. I’m not sure you can when another window is full-screen, but you can check to see if the update window open and force the other window out of full-screen, or give the user a warning that an update awaits, or some other option I’m too tired to think of right now.
@Jeff Tullin , Kaju displays the update window and handles every aspect of self-updating. It also displays error messages. Any other interaction is up to the coder, but Kaju gives lots of feedback and has options to disable its own interactions.
Sorry, my bad. I’m on MacOS 10.12.4 and using Xojo 2017 R1.1.
By solved I meant that I created a new global property which I set to true in the update window. I checked the value of this property on my main window Open event after running KajuCheck and, if true, set the full screen window to not fullscreen. This is the bit that did not work.
I can’t get to the UpdateWindowIsOpen property from outside the Kaju classes.
That will open the update window if it is required, but continues with the Open event. Following that I load my preferences, one of which is whether to set to full screen. If yes then Main resizes to full screen and effectively hides the Update Window before the user has a chance too see it! So the user does not know that there is an update.
I need a way, within my Main.Open event, to check if the update window is open and I cannot find a way to access the UpdateWindowIsOpen property.
First, why Main.Open instead of App.Open? If you do it there, you can decide whether to open Main at all and at what point. Also, it won’t run the update check every time you open a new Main, assuming you can.
But aside from that, I assume KajuCheck is a method you wrote, so you can store the UpdateChecker used in an accessible place like an App property, or just have that method return the UpdateChecker so your calling method can check it.
Without seeing your code, I’d bet you have other options too. You have complete control over this.
I use Main.Open as I have a single window app with multiple page panels and container controls so Main.Open is only executed the once.
I had forgotten that I had created the KajuCheck method as it was a long time ago! So, I changed that method (in a test environment) to check whether my UpdateChecker property had the value UpdateWindowIsOpen set to True and then attempted to ‘shrink’ the Main window. This failed.
I fear that I am wasting everybody’s time now, so I shall mark your previous answer as Answered. I am not too bothered about this, but will have another go when I have more time to concentrate on it.
Thanks Kim, for your help so far. I will experiment later.