misc: chore: Simplify HasCompatibilityEntry
(Totally didn't realize that SelectedApplication is already an ApplicationData)
This commit is contained in:
parent
820e8f7375
commit
b0fcc5bee1
@ -349,16 +349,7 @@ namespace Ryujinx.Ava.UI.ViewModels
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool HasCompatibilityEntry
|
public bool HasCompatibilityEntry => SelectedApplication.HasPlayabilityInfo;
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
DynamicData.Kernel.Optional<ApplicationData> appData =
|
|
||||||
ApplicationLibrary.Applications.Lookup(SelectedApplication.Id);
|
|
||||||
|
|
||||||
return appData.HasValue && appData.Value.HasPlayabilityInfo;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool HasDlc => ApplicationLibrary.HasDlcs(SelectedApplication.Id);
|
public bool HasDlc => ApplicationLibrary.HasDlcs(SelectedApplication.Id);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user