* Some data on this window has become invalid. * @param data Information about the changed data. * @param gui_scope Whether the call is done from GUI scope. You may not do everything when not in GUI scope. See #InvalidateWindowData() for details. */
| 527 | * @param gui_scope Whether the call is done from GUI scope. You may not do everything when not in GUI scope. See #InvalidateWindowData() for details. |
| 528 | */ |
| 529 | void OnInvalidateData([[maybe_unused]] int data = 0, [[maybe_unused]] bool gui_scope = true) override |
| 530 | { |
| 531 | this->script_config = GetConfig(this->slot); |
| 532 | if (this->script_config->GetConfigList()->empty()) this->Close(); |
| 533 | this->RebuildVisibleSettings(); |
| 534 | this->CloseChildWindows(WC_DROPDOWN_MENU); |
| 535 | this->CloseChildWindows(WC_QUERY_STRING); |
| 536 | } |
| 537 | |
| 538 | private: |
| 539 | bool IsEditableItem(const ScriptConfigItem &config_item) const |
no test coverage detected