mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 19:57:57 +01:00
spelling: milliseconds
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
This commit is contained in:
@@ -8,6 +8,6 @@ namespace ColorPicker.Helpers
|
|||||||
{
|
{
|
||||||
public interface IThrottledActionInvoker
|
public interface IThrottledActionInvoker
|
||||||
{
|
{
|
||||||
void ScheduleAction(Action action, int miliseconds);
|
void ScheduleAction(Action action, int milliseconds);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ namespace ColorPicker.Helpers
|
|||||||
_timer.Tick += Timer_Tick;
|
_timer.Tick += Timer_Tick;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ScheduleAction(Action action, int miliseconds)
|
public void ScheduleAction(Action action, int milliseconds)
|
||||||
{
|
{
|
||||||
if (_timer.IsEnabled)
|
if (_timer.IsEnabled)
|
||||||
{
|
{
|
||||||
@@ -29,7 +29,7 @@ namespace ColorPicker.Helpers
|
|||||||
}
|
}
|
||||||
|
|
||||||
_actionToRun = action;
|
_actionToRun = action;
|
||||||
_timer.Interval = new TimeSpan(0, 0, 0, 0, miliseconds);
|
_timer.Interval = new TimeSpan(0, 0, 0, 0, milliseconds);
|
||||||
|
|
||||||
_timer.Start();
|
_timer.Start();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user