MCPcopy Create free account
hub / github.com/GlobedGD/globed2 / stopWaiting

Method stopWaiting

src/ui/admin/ModRoleModifyPopup.cpp:101–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void ModRoleModifyPopup::stopWaiting(const msg::AdminResultMessage& msg) {
102 m_listener.reset();
103
104 if (m_loadPopup) {
105 m_loadPopup->forceClose();
106 m_loadPopup = nullptr;
107 }
108
109 if (!msg.success) {
110 globed::alertFormat("Error", "Failed to set user roles: <cy>{}</c>", msg.error);
111 }
112
113 if (m_callback) m_callback();
114
115 this->onClose(nullptr);
116}
117
118ModRoleModifyPopup* ModRoleModifyPopup::create(int32_t accountId, std::vector<uint8_t> roleIds) {
119 auto ret = new ModRoleModifyPopup();

Callers 1

startWaitingMethod · 0.95

Calls 4

alertFormatFunction · 0.85
forceCloseMethod · 0.80
resetMethod · 0.45
onCloseMethod · 0.45

Tested by

no test coverage detected