MCPcopy Create free account
hub / github.com/MyGUI/mygui / commandSave

Method commandSave

Tools/SkinEditor/EditorState.cpp:142–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 }
141
142 void EditorState::commandSave(const MyGUI::UString& _commandName, bool& _result)
143 {
144 if (!checkCommand())
145 return;
146
147 if (ActionManager::getInstance().getChanges())
148 {
149 if (mFileName == mDefaultFileName)
150 showSaveAsWindow();
151 else
152 save();
153 }
154
155 _result = true;
156 }
157
158 void EditorState::commandSaveAs(const MyGUI::UString& _commandName, bool& _result)
159 {

Callers

nothing calls this directly

Calls 1

getChangesMethod · 0.45

Tested by

no test coverage detected