Skip to content

Commit

Permalink
Merge pull request #55 from SimonBrandner/fix/missing-mode
Browse files Browse the repository at this point in the history
Fix: `mode` missing in a few places
  • Loading branch information
AaronErhardt authored Dec 29, 2023
2 parents 977bab6 + c00f70e commit f1db479
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
8 changes: 2 additions & 6 deletions tailor_gui/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tailor_gui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ gettext-rs = { version = "0.7", features = ["gettext-system"] }
once_cell = "1.17.1"
relm4-components = { version = "0.6.0" }
relm4 = { version = "0.6.0", features = ["libadwaita", "gnome_44"] }
tailor_api = "0.2.1"
tailor_client = "0.2.1"
tailor_api = {version = "0.2.4", path = "../tailor_api" }
tailor_client = {version = "0.2.4", path = "../tailor_client" }
tokio = { version = "1.27", features = ["parking_lot"] }
tracing = "0.1"
tracing-subscriber = "0.3"
Expand Down
2 changes: 2 additions & 0 deletions tailor_gui/src/components/factories/profile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ impl FactoryComponent for Profile {
device_name: device.device_name.clone(),
function: device.function.clone(),
profile: "default".to_owned(),
mode: device.mode.clone(),
})
}
}
Expand All @@ -159,6 +160,7 @@ impl FactoryComponent for Profile {
let device_info = LedDeviceInfo {
device_name: profile.device_name.clone(),
function: profile.function.clone(),
mode: profile.mode.clone(),
};
let index = led_profiles
.iter()
Expand Down
2 changes: 2 additions & 0 deletions tailor_gui/src/components/factories/profile_item_led.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,13 @@ impl ProfileItemLed {
let LedDeviceInfo {
device_name,
function,
mode,
} = self.device_info.clone();
LedProfile {
device_name,
function,
profile,
mode,
}
}
}

0 comments on commit f1db479

Please sign in to comment.