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;
|
||||
MessageTimeSort mts;
|
||||
|
||||
PluginManager pm;
|
||||
|
||||
ToxEventLogger tel{std::cout};
|
||||
ToxClient tc;
|
||||
ToxPrivateImpl tpi;
|
||||
@ -75,6 +73,8 @@ struct MainScreen final : public Screen {
|
||||
ToxUIUtils tuiu;
|
||||
ToxDHTCapHisto tdch;
|
||||
|
||||
PluginManager pm; // last, so it gets destroyed first
|
||||
|
||||
bool _show_tool_style_editor {false};
|
||||
bool _show_tool_metrics {false};
|
||||
bool _show_tool_debug_log {false};
|
||||
|
Loading…
Reference in New Issue
Block a user