feat(ui): used dxvk component's title field

This commit is contained in:
Observer KRypt0n_ 2023-04-06 23:16:24 +02:00
parent 7fb37d9252
commit 487fdd79ee
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2
3 changed files with 11 additions and 7 deletions

4
Cargo.lock generated
View file

@ -86,8 +86,8 @@ dependencies = [
[[package]]
name = "anime-launcher-sdk"
version = "0.5.9"
source = "git+https://github.com/an-anime-team/anime-launcher-sdk?tag=0.5.9#c38fc3206a4ffa2aa1c6517a8570ea0cd92daecb"
version = "0.5.10"
source = "git+https://github.com/an-anime-team/anime-launcher-sdk?tag=0.5.10#186aa204d6a87a26198a00c9fb59e0a313f68227"
dependencies = [
"anime-game-core",
"anyhow",

View file

@ -17,7 +17,7 @@ glib-build-tools = "0.17"
[dependencies.anime-launcher-sdk]
git = "https://github.com/an-anime-team/anime-launcher-sdk"
tag = "0.5.9"
tag = "0.5.10"
# path = "../anime-launcher-sdk" # ! for dev purposes only

View file

@ -25,6 +25,7 @@ pub struct ComponentsListGroup {
}
impl From<wine::Group> for ComponentsListGroup {
#[inline]
fn from(group: wine::Group) -> Self {
Self {
title: group.title,
@ -34,6 +35,7 @@ impl From<wine::Group> for ComponentsListGroup {
}
impl From<dxvk::Group> for ComponentsListGroup {
#[inline]
fn from(group: dxvk::Group) -> Self {
Self {
title: group.title,
@ -51,23 +53,25 @@ pub struct ComponentsListVersion {
}
impl From<wine::Version> for ComponentsListVersion {
#[inline]
fn from(version: wine::Version) -> Self {
Self {
name: version.name,
title: version.title,
uri: version.uri,
recommended: true // FIXME
recommended: true
}
}
}
impl From<dxvk::Version> for ComponentsListVersion {
#[inline]
fn from(version: dxvk::Version) -> Self {
Self {
name: version.name.clone(),
title: version.name,
name: version.name,
title: version.title,
uri: version.uri,
recommended: true // FIXME
recommended: true
}
}
}