adds assertInGuiThread to getApp() (#2695)

This commit is contained in:
fourtf 2021-05-01 12:47:33 +02:00 committed by GitHub
parent 9c41adca2e
commit 345bcdb963
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,7 @@
#include "controllers/commands/CommandController.hpp"
#include "controllers/ignores/IgnoreController.hpp"
#include "controllers/notifications/NotificationController.hpp"
#include "debug/AssertInGuiThread.hpp"
#include "messages/MessageBuilder.hpp"
#include "providers/bttv/BttvEmotes.hpp"
#include "providers/chatterino/ChatterinoBadges.hpp"
@ -379,6 +380,8 @@ Application *getApp()
{
assert(Application::instance != nullptr);
assertInGuiThread();
return Application::instance;
}