File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,10 @@ fn init_desktop_speaker(ui: &AppWindow) {
191191 loop {
192192 thread:: sleep ( std:: time:: Duration :: from_secs ( 5 ) ) ;
193193
194+ if !config:: all ( ) . control . enable_desktop_speaker {
195+ continue ;
196+ }
197+
194198 let device_info = CACHE . lock ( ) . unwrap ( ) . speaker_device_info . clone ( ) ;
195199
196200 if speaker_device_changed ( & recorder, & device_info) {
Original file line number Diff line number Diff line change @@ -205,8 +205,6 @@ component ControlPanel inherits HorizontalLayout {
205205 }
206206
207207 HorizontalLayout {
208- spacing : Theme.spacing * 2 ;
209-
210208 VerticalLayout {
211209 alignment : center;
212210
@@ -231,6 +229,8 @@ component ControlPanel inherits HorizontalLayout {
231229 alignment : center;
232230
233231 Label {
232+ horizontal-alignment : right;
233+ width : self .font-size * 3 ;
234234 text : input-audio-slider.value.to-fixed(0 ) + "db" ;
235235 color : input-audio-slider.enabled ? Theme.primary-text-color : Theme.disabled-color;
236236 }
@@ -292,8 +292,6 @@ component ControlPanel inherits HorizontalLayout {
292292 }
293293
294294 HorizontalLayout {
295- spacing : Theme.spacing * 2 ;
296-
297295 VerticalLayout {
298296 alignment : center;
299297 desktop-speaker-slider := Slider {
@@ -318,6 +316,8 @@ component ControlPanel inherits HorizontalLayout {
318316 alignment : center;
319317
320318 Label {
319+ horizontal-alignment : right;
320+ width : self .font-size * 3 ;
321321 text : desktop-speaker-slider.value.to-fixed(0 ) + "db" ;
322322 color : desktop-speaker-slider.enabled ? Theme.primary-text-color : Theme.disabled-color;
323323 }
You can’t perform that action at this time.
0 commit comments