mirror of
https://github.com/scorpion-26/gBar.git
synced 2024-11-21 18:52:49 +00:00
Switch audio loop to late dispatch
This commit is contained in:
parent
3c6850b530
commit
dfae74e169
1 changed files with 2 additions and 2 deletions
|
@ -87,6 +87,8 @@ namespace AudioFlyin
|
|||
mainWidget->SetSpacing({8, false});
|
||||
mainWidget->SetVerticalTransform({16, true, Alignment::Fill});
|
||||
mainWidget->SetClass("bar");
|
||||
// We update the margin in the timer, so we need late dispatch.
|
||||
mainWidget->AddTimer<Box>(DynCtx::Main, 1, TimerDispatchBehaviour::LateDispatch);
|
||||
|
||||
auto padding = Widget::Create<Box>();
|
||||
padding->SetHorizontalTransform({8, true, Alignment::Fill});
|
||||
|
@ -97,8 +99,6 @@ namespace AudioFlyin
|
|||
padding = Widget::Create<Box>();
|
||||
mainWidget->AddChild(std::move(padding));
|
||||
|
||||
mainWidget->AddTimer<Box>(DynCtx::Main, 1);
|
||||
|
||||
window = Window(std::move(mainWidget), monitor);
|
||||
window.SetExclusive(false);
|
||||
window.SetAnchor(Anchor::Bottom);
|
||||
|
|
Loading…
Reference in a new issue