console log config location

This commit is contained in:
Malte Jürgens 2023-02-18 23:53:17 +01:00
parent 259e6dc75d
commit 8a8690fe53
No known key found for this signature in database
GPG key ID: D29FBD5F93C0CFC3
2 changed files with 6 additions and 2 deletions

View file

@ -54,12 +54,15 @@ void DiscordPage::setupPermissions() {
} }
void DiscordPage::setupUserStyles() { void DiscordPage::setupUserStyles() {
qDebug(userstylesLog).noquote()
<< "Looking for userstyles in"
<< QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation);
m_userStylesFile = new QFile( m_userStylesFile = new QFile(
QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) +
"/userstyles.css"); "/userstyles.css");
if (m_userStylesFile->exists()) { if (m_userStylesFile->exists()) {
qDebug(userstylesLog) << "Found userstyles:" qDebug(userstylesLog).noquote()
<< m_userStylesFile->fileName(); << "Found userstyles:" << m_userStylesFile->fileName();
m_userStylesFile->open(QIODevice::ReadOnly); m_userStylesFile->open(QIODevice::ReadOnly);
m_userStylesContent = m_userStylesFile->readAll(); m_userStylesContent = m_userStylesFile->readAll();
m_userStylesFile->close(); m_userStylesFile->close();

1
submodules/Vencord Submodule

@ -0,0 +1 @@
Subproject commit 62b2acebe6806c7b0e2ca6a43c6b2419a627b8dc