diff --git a/tailor_gui/Cargo.lock b/tailor_gui/Cargo.lock index a03a43e..e89f2d6 100644 --- a/tailor_gui/Cargo.lock +++ b/tailor_gui/Cargo.lock @@ -1853,9 +1853,7 @@ dependencies = [ [[package]] name = "tailor_api" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21a0695b1d8d5e042a3bf5891d637d7d975fc9459b622ea966e54b8936061ce6" +version = "0.2.4" dependencies = [ "atoi", "serde", @@ -1863,9 +1861,7 @@ dependencies = [ [[package]] name = "tailor_client" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "235b1287771becf96f15e31cdfac036308ab6991e37104a0b3152702228649e4" +version = "0.2.4" dependencies = [ "serde_json", "tailor_api", diff --git a/tailor_gui/Cargo.toml b/tailor_gui/Cargo.toml index 89c861e..6c47338 100644 --- a/tailor_gui/Cargo.toml +++ b/tailor_gui/Cargo.toml @@ -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" diff --git a/tailor_gui/src/components/factories/profile.rs b/tailor_gui/src/components/factories/profile.rs index 3451762..b696fd8 100644 --- a/tailor_gui/src/components/factories/profile.rs +++ b/tailor_gui/src/components/factories/profile.rs @@ -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(), }) } } @@ -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() diff --git a/tailor_gui/src/components/factories/profile_item_led.rs b/tailor_gui/src/components/factories/profile_item_led.rs index f89cd33..fbe66a1 100644 --- a/tailor_gui/src/components/factories/profile_item_led.rs +++ b/tailor_gui/src/components/factories/profile_item_led.rs @@ -99,11 +99,13 @@ impl ProfileItemLed { let LedDeviceInfo { device_name, function, + mode, } = self.device_info.clone(); LedProfile { device_name, function, profile, + mode, } } }