fix build
This commit is contained in:
@@ -22,7 +22,7 @@ pub enum LabelContent {
|
|||||||
text: Arc<str>,
|
text: Arc<str>,
|
||||||
},
|
},
|
||||||
Exec {
|
Exec {
|
||||||
exec: ExecArgs,
|
command: ExecArgs,
|
||||||
interval: f32,
|
interval: f32,
|
||||||
},
|
},
|
||||||
Clock {
|
Clock {
|
||||||
@@ -85,10 +85,10 @@ pub fn modular_label_init(label: &mut ModularControl, content: &LabelContent) {
|
|||||||
timezone: tz,
|
timezone: tz,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
LabelContent::Exec { exec, interval } => Some(LabelData::Exec {
|
LabelContent::Exec { command, interval } => Some(LabelData::Exec {
|
||||||
last_exec: Instant::now(),
|
last_exec: Instant::now(),
|
||||||
interval: *interval,
|
interval: *interval,
|
||||||
exec: exec.clone(),
|
command: command.clone(),
|
||||||
child: None,
|
child: None,
|
||||||
}),
|
}),
|
||||||
LabelContent::Static { text } => {
|
LabelContent::Static { text } => {
|
||||||
@@ -158,7 +158,7 @@ pub(super) fn label_update(control: &mut ModularControl, _: &mut (), app: &mut A
|
|||||||
LabelData::Exec {
|
LabelData::Exec {
|
||||||
last_exec,
|
last_exec,
|
||||||
interval,
|
interval,
|
||||||
exec,
|
command,
|
||||||
child,
|
child,
|
||||||
} => {
|
} => {
|
||||||
if let Some(mut proc) = child.take() {
|
if let Some(mut proc) = child.take() {
|
||||||
@@ -200,7 +200,7 @@ pub(super) fn label_update(control: &mut ModularControl, _: &mut (), app: &mut A
|
|||||||
> *interval
|
> *interval
|
||||||
{
|
{
|
||||||
*last_exec = Instant::now();
|
*last_exec = Instant::now();
|
||||||
let args = exec
|
let args = command
|
||||||
.iter()
|
.iter()
|
||||||
.map(|s| s.as_ref())
|
.map(|s| s.as_ref())
|
||||||
.collect::<SmallVec<[&str; 8]>>();
|
.collect::<SmallVec<[&str; 8]>>();
|
||||||
|
|||||||
Reference in New Issue
Block a user