chore: remove Singleton & replace getIApp with getApp (#5514)

This commit is contained in:
pajlada
2024-07-21 15:09:59 +02:00
committed by GitHub
parent 21186df058
commit 5deec1f02f
145 changed files with 802 additions and 856 deletions
+1 -5
View File
@@ -1,7 +1,5 @@
#pragma once
#include "common/Singleton.hpp"
#include <QtGlobal>
#ifdef CHATTERINO_WITH_CRASHPAD
@@ -15,7 +13,7 @@ namespace chatterino {
class Args;
class Paths;
class CrashHandler : public Singleton
class CrashHandler
{
const Paths &paths;
@@ -30,8 +28,6 @@ public:
/// Sets and saves whether Chatterino should restart on a crash
void saveShouldRecover(bool value);
void initialize(Settings &settings, const Paths &paths) override;
private:
bool shouldRecover_ = false;
};