Hello,
I’m building an editor window, which can open a scene when pressing a button. Problem is, I’d like to know if the currently opened scene is “dirty” (meaning it needs to be saved), before opening the new one. Is there any way to do this?
Thanks 
Uh, that was quick. I found a sort of solution: calling EditorApplication.SaveCurrentSceneIfUserWantsTo() will open a save popup only if the current scene is dirty.
Sometimes I hate how Unity documentation lacks simple facts as this, and makes me look for alternate solutions for ages 
Wow helpful topic… Did the same thing loading a scene with a button press and noticed that my scenes were not saving, came here and got an instant answer. Love it.