refactor: Un-singletonize Paths & Updates (#5092)

This commit is contained in:
pajlada
2024-01-16 21:56:43 +01:00
committed by GitHub
parent 7f935665f9
commit 718696db53
60 changed files with 237 additions and 165 deletions
+3 -6
View File
@@ -9,8 +9,6 @@ namespace chatterino {
class Paths
{
public:
static Paths *instance;
Paths();
// Root directory for the configuration files. %APPDATA%/chatterino or
@@ -42,9 +40,10 @@ public:
QString themesDirectory;
bool createFolder(const QString &folderPath);
bool isPortable();
[[deprecated("use Modes::instance().portable instead")]] bool isPortable()
const;
QString cacheDirectory();
QString cacheDirectory() const;
private:
void initAppFilePathHash();
@@ -58,6 +57,4 @@ private:
QString cacheDirectory_;
};
Paths *getPaths();
} // namespace chatterino