Skip to content

Commit

Permalink
fix(about): support for non-cutefishos
Browse files Browse the repository at this point in the history
  • Loading branch information
p3psi-boo committed Jan 28, 2022
1 parent 89666b7 commit 283fe0d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/about.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,11 @@ bool About::isCutefishOS()

QString About::version()
{
QSettings settings("/etc/cutefish", QSettings::IniFormat);
return settings.value("Version").toString();
if (this->isCutefishOS()) {
QSettings settings("/etc/cutefish", QSettings::IniFormat);
return settings.value("Version").toString();
}
return this->prettyProductName();
}

QString About::osName()
Expand Down

0 comments on commit 283fe0d

Please sign in to comment.