forked from Green-Sky/tomato
fix main screen destruction order,
so plugins can cleanup before their facilities get destroyed
This commit is contained in:
parent
95ec596cfd
commit
78c7ef5b46
@ -48,8 +48,6 @@ struct MainScreen final : public Screen {
|
|||||||
RegistryMessageModel rmm;
|
RegistryMessageModel rmm;
|
||||||
MessageTimeSort mts;
|
MessageTimeSort mts;
|
||||||
|
|
||||||
PluginManager pm;
|
|
||||||
|
|
||||||
ToxEventLogger tel{std::cout};
|
ToxEventLogger tel{std::cout};
|
||||||
ToxClient tc;
|
ToxClient tc;
|
||||||
ToxPrivateImpl tpi;
|
ToxPrivateImpl tpi;
|
||||||
@ -75,6 +73,8 @@ struct MainScreen final : public Screen {
|
|||||||
ToxUIUtils tuiu;
|
ToxUIUtils tuiu;
|
||||||
ToxDHTCapHisto tdch;
|
ToxDHTCapHisto tdch;
|
||||||
|
|
||||||
|
PluginManager pm; // last, so it gets destroyed first
|
||||||
|
|
||||||
bool _show_tool_style_editor {false};
|
bool _show_tool_style_editor {false};
|
||||||
bool _show_tool_metrics {false};
|
bool _show_tool_metrics {false};
|
||||||
bool _show_tool_debug_log {false};
|
bool _show_tool_debug_log {false};
|
||||||
|
Loading…
Reference in New Issue
Block a user