mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-15 05:27:16 +00:00
fix: better implmentation of input select
This commit is contained in:
parent
8878ff7ddd
commit
a11ad421f0
2 changed files with 11 additions and 32 deletions
|
|
@ -90,7 +90,12 @@ namespace PepperDash.Essentials.Devices.Common.Displays
|
|||
|
||||
public void Select()
|
||||
{
|
||||
_parent.SetInput(Key);
|
||||
if (!_parent.PowerIsOnFeedback.BoolValue) _parent.PowerOn();
|
||||
|
||||
foreach(var input in _parent.Inputs.Items)
|
||||
{
|
||||
input.Value.IsSelected = input.Key == this.Key;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue