Admin mode WIP

This commit is contained in:
2023-07-26 10:24:22 +02:00
parent ba1210b2c4
commit 0c49071a3b
46 changed files with 695 additions and 55 deletions

View File

@@ -10,7 +10,7 @@ public sealed class DebounceProperty<T> : TimingPropertyBase<T>
public DebounceProperty(
IDeclarativeProperty<T> from,
TimeSpan interval,
Func<TimeSpan> interval,
Action<T?>? setValueHook = null) : base(from, interval, setValueHook)
{
}
@@ -33,7 +33,7 @@ public sealed class DebounceProperty<T> : TimingPropertyBase<T>
{
try
{
while (DateTime.Now - _startTime < Interval)
while (DateTime.Now - _startTime < Interval())
{
await Task.Delay(WaitInterval, newToken);
}