refactor: some Application & style things (#5561)

This commit is contained in:
pajlada
2024-08-25 15:33:07 +02:00
committed by GitHub
parent ac88730563
commit 627c735524
41 changed files with 733 additions and 678 deletions
+9 -1
View File
@@ -1,11 +1,16 @@
#pragma once
#include <pajlada/signals/scoped-connection.hpp>
#include <pajlada/signals/signal.hpp>
#include <QString>
#include <memory>
#include <vector>
namespace chatterino {
class Paths;
class Settings;
/**
* To check for updates, use the `checkForUpdates` method.
@@ -16,7 +21,7 @@ class Updates
const Paths &paths;
public:
explicit Updates(const Paths &paths_);
Updates(const Paths &paths_, Settings &settings);
enum Status {
None,
@@ -59,6 +64,9 @@ private:
QString updateGuideLink_;
void setStatus_(Status status);
std::vector<std::unique_ptr<pajlada::Signals::ScopedConnection>>
managedConnections;
};
} // namespace chatterino