I created an AlertWindow :
juce::AlertWindow offlineDeviceAlert(“Could not fetch parameter”, “Device offline…”, juce::AlertWindow::InfoIcon);
and I run that in Modal mode using:
Now I want to stop or remove the modal AlertWindow. How can I acheive this?
I’m trying to stop the user from clicking on the main window when a device is offline and they’re trying to access the parameters of that device. So my messy solution is to always put a message saying that the device parameter can’t be accessed at that time. I create and display the message right before a blocking call which checks for the device parameter and then I want to delete/remove the message once the call returns.
What is the best way to do this?