fix main screen destruction order,

so plugins can cleanup before their facilities get destroyed
This commit is contained in:
Green Sky 2024-04-06 11:56:18 +02:00
parent 95ec596cfd
commit 78c7ef5b46
No known key found for this signature in database

View File

@ -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};