public bool ContinueWithPendingChanges() { bool result = false; GUIActionRunner.RunGUIAction(() => { result = ConfirmContinueWithPendingChangesDialog.ConfirmContinue( mTitle, mExplanation, mViewSwitcher, mParentWindow); }); return(result); }
internal static bool ConfirmContinue( string title, string explanation, IViewSwitcher viewSwitcher, EditorWindow parentWindow) { ConfirmContinueWithPendingChangesDialog dialog = Create( title, explanation, viewSwitcher); if (dialog.RunModal(parentWindow) != ResponseType.Ok) { return(false); } if (dialog.mIsSwitchToConfirmationChecked) { SavePreference(); } return(true); }