Exemple #1
0
        private void OnForceSaveAll(object sender, EventArgs e)
        {
            if (ResourcesHandler.Project == null)
            {
                return;
            }

            foreach (DocumentDialogue document in documentDialogues)
            {
                document.ResolvePendingDirty();
            }

            EditorCore.LogInfo("Checking all Dialogues - Begin");

            ResourcesHandler.CheckAll();

            EditorCore.LogInfo("Checking all Dialogues - End");

            ResourcesHandler.SaveAll();

            foreach (DocumentDialogue document in documentDialogues)
            {
                document.OnPostSave();
            }

            RefreshDirtyFlags();

            EditorCore.LogInfo("All Project Files Saved");
        }