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
+7 -1
View File
@@ -46,12 +46,18 @@ const QString CHATTERINO_OS = u"unknown"_s;
namespace chatterino {
Updates::Updates(const Paths &paths_)
Updates::Updates(const Paths &paths_, Settings &settings)
: paths(paths_)
, currentVersion_(CHATTERINO_VERSION)
, updateGuideLink_("https://chatterino.com")
{
qCDebug(chatterinoUpdate) << "init UpdateManager";
settings.betaUpdates.connect(
[this] {
this->checkForUpdates();
},
this->managedConnections, false);
}
/// Checks if the online version is newer or older than the current version.