diff options
author | kotontrion <[email protected]> | 2024-09-18 12:55:40 +0200 |
---|---|---|
committer | kotontrion <[email protected]> | 2024-09-18 12:55:40 +0200 |
commit | de096e16da8a76c60b97ca0238a1cd1b545fa295 (patch) | |
tree | 08975b942b899bf4344e6258b03566b3db26d5d1 /examples | |
parent | 18c0a31fa41f925e3324042bea940155ae6bf774 (diff) |
wireplumber: rename get_default_wp to get_default
Diffstat (limited to 'examples')
-rw-r--r-- | examples/js/simple-bar/widget/Bar.tsx | 2 | ||||
-rw-r--r-- | examples/lua/simple-bar/widget/Bar.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/js/simple-bar/widget/Bar.tsx b/examples/js/simple-bar/widget/Bar.tsx index 492ab1d..19e1133 100644 --- a/examples/js/simple-bar/widget/Bar.tsx +++ b/examples/js/simple-bar/widget/Bar.tsx @@ -39,7 +39,7 @@ function Wifi() { } function AudioSlider() { - const speaker = Wp.get_default_wp()?.audio.defaultSpeaker! + const speaker = Wp.get_default()?.audio.defaultSpeaker! return <box className="AudioSlider" css="min-width: 140px"> <icon icon={bind(speaker, "volumeIcon")} /> diff --git a/examples/lua/simple-bar/widget/Bar.lua b/examples/lua/simple-bar/widget/Bar.lua index bf70cd5..56cb060 100644 --- a/examples/lua/simple-bar/widget/Bar.lua +++ b/examples/lua/simple-bar/widget/Bar.lua @@ -72,7 +72,7 @@ local function Wifi() end local function AudioSlider() - local speaker = Wp.get_default_wp().audio.default_speaker + local speaker = Wp.get_default().audio.default_speaker return Widget.Box({ class_name = "AudioSlider", |