Refactored the Image Uploader feature. (#4971)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Mm2PL
2023-11-19 12:05:30 +01:00
committed by GitHub
parent 7898b97fc2
commit fbc8aacabe
13 changed files with 266 additions and 139 deletions
+2
View File
@@ -10,6 +10,7 @@
#include "controllers/hotkeys/HotkeyController.hpp"
#include "controllers/ignores/IgnoreController.hpp"
#include "controllers/notifications/NotificationController.hpp"
#include "singletons/ImageUploader.hpp"
#ifdef CHATTERINO_HAVE_PLUGINS
# include "controllers/plugins/PluginController.hpp"
#endif
@@ -79,6 +80,7 @@ Application::Application(Settings &_settings, Paths &_paths)
, hotkeys(&this->emplace<HotkeyController>())
, windows(&this->emplace<WindowManager>())
, toasts(&this->emplace<Toasts>())
, imageUploader(&this->emplace<ImageUploader>())
, commands(&this->emplace<CommandController>())
, notifications(&this->emplace<NotificationController>())