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

Method notifyEndDialog

Tools/LayoutEditor/SettingsUpdateResourcesControl.cpp:93–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 }
92
93 void SettingsUpdateResourcesControl::notifyEndDialog(Dialog* _sender, bool _result)
94 {
95 mTextFieldControl->endModal();
96
97 if (_result)
98 {
99 if (!mTextFieldControl->getTextField().empty())
100 {
101 mResources->setItemNameAt(mResources->getItemCount() - 1, mTextFieldControl->getTextField());
102 return;
103 }
104 }
105
106 mResources->removeItemAt(mResources->getItemCount() - 1);
107 }
108
109 void SettingsUpdateResourcesControl::OnCommand(std::string_view _command)
110 {

Callers

nothing calls this directly

Calls 6

getTextFieldMethod · 0.80
endModalMethod · 0.45
emptyMethod · 0.45
setItemNameAtMethod · 0.45
getItemCountMethod · 0.45
removeItemAtMethod · 0.45

Tested by

no test coverage detected