I’m probably dumb but i can not find a way to set the dirty bit of a window. I mean on macOS the black dot inside the close window button to indicate that the document has been changed.
The change that added this functionality to the Projucer is here:
1 Like
Thanks for the clue. I quickly searched into the Projucer without success.
Thus simple thing like that seems to do the job:
void setDirtyFlag (bool isDirty)
{
juce::ComponentPeer* peer = getPeer();
if (peer) {
peer->setHasChangedSinceSaved (isDirty);
}
}