Skip to content

Commit

Permalink
Format with clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
capital-G committed Jun 28, 2021
1 parent 66ab242 commit 302a16a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions editors/sc-ide/core/settings/theme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,16 +159,16 @@ void Theme::fillUser(const QString& name, const Manager* settings) {
}

void Theme::copyCSS(const QString& _name) {

QString scDocCssFilePath = standardDirectory(StandardDirectory::ScAppDataUserDir) + "/Help/scdoc.css";
QString themeCssFilePath = standardDirectory(StandardDirectory::ScResourceDir) + "/HelpSource/themes/" + _name + ".css";
QString themeCssFilePath =
standardDirectory(StandardDirectory::ScResourceDir) + "/HelpSource/themes/" + _name + ".css";

if(!QFile::exists(themeCssFilePath)) {
if (!QFile::exists(themeCssFilePath)) {
qDebug() << "Did not find CSS theme file " << themeCssFilePath;
qDebug() << "Apply default CSS theme";
themeCssFilePath = standardDirectory(StandardDirectory::ScResourceDir) + "/HelpSource/themes/default.css";
}
if(QFile::exists(scDocCssFilePath)) {
if (QFile::exists(scDocCssFilePath)) {
QFile::remove(scDocCssFilePath);
}
QFile::copy(themeCssFilePath, scDocCssFilePath);
Expand Down

0 comments on commit 302a16a

Please sign in to comment.