Don't enable confirms on plugin enable

develop
Robob27 2023-02-15 16:10:22 -05:00
parent 8e577e7469
commit b4bd806134
1 changed files with 1 additions and 9 deletions

@ -612,15 +612,7 @@ DFhackCExport command_result plugin_init (color_ostream &out, vector <PluginComm
DFhackCExport command_result plugin_enable (color_ostream &out, bool enable) DFhackCExport command_result plugin_enable (color_ostream &out, bool enable)
{ {
if (is_enabled != enable)
{
for (auto c : confirmations)
{
if (!c.second->apply(enable))
return CR_FAILURE;
}
is_enabled = enable; is_enabled = enable;
}
if (is_enabled) if (is_enabled)
{ {
conf_lua::simple_call("check"); conf_lua::simple_call("check");