MCPcopy Create free account
hub / github.com/DFHack/dfhack / on_disable

Function on_disable

plugins/spectate.cpp:307–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

305}
306
307static void on_disable(color_ostream &out, bool skip_restore_settings = false) {
308 EventManager::unregisterAll(plugin_self);
309 announcement_settings.reset(out, skip_restore_settings);
310}
311
312static bool is_squads_open() {
313 return Gui::matchFocusString("dwarfmode/Squads", Gui::getDFViewscreen());

Calls 1

resetMethod · 0.45

Tested by

no test coverage detected