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

Method startWaiting

src/ui/admin/ModRoleModifyPopup.cpp:87–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87void ModRoleModifyPopup::startWaiting() {
88 m_listener = NetworkManagerImpl::get().listen<msg::AdminResultMessage>([this](const auto& msg) {
89 this->stopWaiting(msg);
90 return ListenerResult::Stop;
91 }, -100);
92
93 if (m_loadPopup) {
94 m_loadPopup->forceClose();
95 }
96
97 m_loadPopup = LoadingPopup::create();
98 m_loadPopup->show();
99}
100
101void ModRoleModifyPopup::stopWaiting(const msg::AdminResultMessage& msg) {
102 m_listener.reset();

Callers 1

submitMethod · 0.95

Calls 4

stopWaitingMethod · 0.95
forceCloseMethod · 0.80
showMethod · 0.80
getFunction · 0.50

Tested by

no test coverage detected