mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
adds assertInGuiThread to getApp() (#2695)
This commit is contained in:
parent
9c41adca2e
commit
345bcdb963
1 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
||||||
#include "controllers/commands/CommandController.hpp"
|
#include "controllers/commands/CommandController.hpp"
|
||||||
#include "controllers/ignores/IgnoreController.hpp"
|
#include "controllers/ignores/IgnoreController.hpp"
|
||||||
#include "controllers/notifications/NotificationController.hpp"
|
#include "controllers/notifications/NotificationController.hpp"
|
||||||
|
#include "debug/AssertInGuiThread.hpp"
|
||||||
#include "messages/MessageBuilder.hpp"
|
#include "messages/MessageBuilder.hpp"
|
||||||
#include "providers/bttv/BttvEmotes.hpp"
|
#include "providers/bttv/BttvEmotes.hpp"
|
||||||
#include "providers/chatterino/ChatterinoBadges.hpp"
|
#include "providers/chatterino/ChatterinoBadges.hpp"
|
||||||
|
@ -379,6 +380,8 @@ Application *getApp()
|
||||||
{
|
{
|
||||||
assert(Application::instance != nullptr);
|
assert(Application::instance != nullptr);
|
||||||
|
|
||||||
|
assertInGuiThread();
|
||||||
|
|
||||||
return Application::instance;
|
return Application::instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue