mirror of
https://gitlab.com/asus-linux/asusctl.git
synced 2026-02-06 00:15:04 +01:00
Fixed issues with asusctl-slash command
This commit is contained in:
@@ -488,6 +488,7 @@ fn handle_slash(
|
|||||||
cmd.enabled.is_none() &&
|
cmd.enabled.is_none() &&
|
||||||
cmd.brightness.is_none() &&
|
cmd.brightness.is_none() &&
|
||||||
cmd.interval.is_none() &&
|
cmd.interval.is_none() &&
|
||||||
|
cmd.slash_mode.is_none() &&
|
||||||
!cmd.list
|
!cmd.list
|
||||||
) || cmd.help
|
) || cmd.help
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,25 +10,25 @@ trait Slash {
|
|||||||
/// EnableDisplay property
|
/// EnableDisplay property
|
||||||
#[zbus(property)]
|
#[zbus(property)]
|
||||||
fn enabled(&self) -> zbus::Result<bool>;
|
fn enabled(&self) -> zbus::Result<bool>;
|
||||||
#[zbus(property)]
|
// #[zbus(property)]
|
||||||
fn set_enabled(&self, value: bool) -> zbus::Result<()>;
|
fn set_enabled(&self, value: bool) -> zbus::Result<()>;
|
||||||
|
|
||||||
/// Brightness property
|
/// Brightness property
|
||||||
#[zbus(property)]
|
#[zbus(property)]
|
||||||
fn brightness(&self) -> zbus::Result<u8>;
|
fn brightness(&self) -> zbus::Result<u8>;
|
||||||
#[zbus(property)]
|
// #[zbus(property)]
|
||||||
fn set_brightness(&self, value: u8) -> zbus::Result<()>;
|
fn set_brightness(&self, value: u8) -> zbus::Result<()>;
|
||||||
|
|
||||||
/// Interval property
|
/// Interval property
|
||||||
#[zbus(property)]
|
#[zbus(property)]
|
||||||
fn interval(&self) -> zbus::Result<u8>;
|
fn interval(&self) -> zbus::Result<u8>;
|
||||||
#[zbus(property)]
|
// #[zbus(property)]
|
||||||
fn set_interval(&self, value: u8) -> zbus::Result<()>;
|
fn set_interval(&self, value: u8) -> zbus::Result<()>;
|
||||||
|
|
||||||
/// Slash modes property
|
/// Slash modes property
|
||||||
#[zbus(property)]
|
#[zbus(property)]
|
||||||
fn slash_mode(&self) -> zbus::Result<SlashMode>;
|
fn slash_mode(&self) -> zbus::Result<SlashMode>;
|
||||||
#[zbus(property)]
|
// #[zbus(property)]
|
||||||
fn set_slash_mode(&self, value: SlashMode) -> zbus::Result<()>;
|
fn set_slash_mode(&self, value: SlashMode) -> zbus::Result<()>;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user