I am trying to implement the exact functionality. But the issue I see is after I show the popup and clicked on “Confirm” my subWindow content is changed to the mainWindow content.
That would be good if I close the subwindow too after I click on “Confirm” rather than staying on the subWindow and see the mainWindow content in subWindow.