refactor: Un-singletonize Paths & Updates (#5092)
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
|
||||
namespace chatterino {
|
||||
|
||||
void NotificationController::initialize(Settings &settings, Paths &paths)
|
||||
void NotificationController::initialize(Settings &settings, const Paths &paths)
|
||||
{
|
||||
this->initialized_ = true;
|
||||
for (const QString &channelName : this->twitchSetting_.getValue())
|
||||
|
||||
@@ -20,7 +20,7 @@ enum class Platform : uint8_t {
|
||||
class NotificationController final : public Singleton, private QObject
|
||||
{
|
||||
public:
|
||||
void initialize(Settings &settings, Paths &paths) override;
|
||||
void initialize(Settings &settings, const Paths &paths) override;
|
||||
|
||||
bool isChannelNotified(const QString &channelName, Platform p);
|
||||
void updateChannelNotification(const QString &channelName, Platform p);
|
||||
|
||||
Reference in New Issue
Block a user