fix: correct property check logic

Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
ComixHe
2023-09-01 15:49:30 +08:00
committed by Comix
parent ca24d2d908
commit 94f7b3c01d
2 changed files with 3 additions and 2 deletions

View File

@ -333,13 +333,13 @@ QString ApplicationService::id() const noexcept
bool ApplicationService::x_Flatpak() const noexcept
{
auto val = findEntryValue(DesktopFileEntryKey, "X-flatpak", EntryValueType::String);
return val.isNull();
return !val.isNull();
}
bool ApplicationService::x_linglong() const noexcept
{
auto val = findEntryValue(DesktopFileEntryKey, "X-linglong", EntryValueType::String);
return val.isNull();
return !val.isNull();
}
qulonglong ApplicationService::installedTime() const noexcept