fix: more MSVC warnings (#5137)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "Application.hpp"
|
||||
#include "common/Literals.hpp"
|
||||
#include "common/Modes.hpp"
|
||||
#include "common/QLogging.hpp"
|
||||
#include "debug/AssertInGuiThread.hpp"
|
||||
#include "providers/twitch/TwitchIrcServer.hpp"
|
||||
@@ -40,7 +41,7 @@ void registerNmManifest(const Paths &paths, const QString &manifestFilename,
|
||||
|
||||
void registerNmHost(const Paths &paths)
|
||||
{
|
||||
if (paths.isPortable())
|
||||
if (Modes::instance().isPortable)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ void Paths::initRootDirectory()
|
||||
|
||||
this->rootAppDataDirectory = [&]() -> QString {
|
||||
// portable
|
||||
if (this->isPortable())
|
||||
if (Modes::instance().isPortable)
|
||||
{
|
||||
return QCoreApplication::applicationDirPath();
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ void Updates::installUpdates()
|
||||
box->exec();
|
||||
QDesktopServices::openUrl(this->updateGuideLink_);
|
||||
#elif defined Q_OS_WIN
|
||||
if (this->paths.isPortable())
|
||||
if (Modes::instance().isPortable)
|
||||
{
|
||||
QMessageBox *box =
|
||||
new QMessageBox(QMessageBox::Information, "Chatterino Update",
|
||||
|
||||
Reference in New Issue
Block a user