Skip to content

Commit

Permalink
Merge pull request #55 from p3psi-boo/fix-about-version
Browse files Browse the repository at this point in the history
Fix no version show on other distro
  • Loading branch information
reionwong authored Aug 1, 2024
2 parents b5da966 + 283fe0d commit d7587c5
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 d7587c5

Please sign in to comment.