refactor: Un-singletonize Paths & Updates (#5092)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user