File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -403,20 +403,19 @@ fn render_monitor_snapshot_base(
403403 let mut temp_mon = Monitor :: default ( ) ;
404404 temp_mon. work_rect . w = snapshot. width ;
405405
406- let ( status_start_x, status_width, status_click_targets) = if snapshot. is_selected_monitor
407- && !snapshot. status_items . is_empty ( )
408- {
409- crate :: bar:: status:: draw_status_items (
410- systray_width,
411- & temp_mon,
412- bar_height,
413- snapshot. status_items . as_slice ( ) ,
414- snapshot. status_scheme . clone ( ) ,
415- painter,
416- )
417- } else {
418- ( 0 , 0 , Vec :: new ( ) )
419- } ;
406+ let ( status_start_x, status_width, status_click_targets) =
407+ if snapshot. is_selected_monitor && !snapshot. status_items . is_empty ( ) {
408+ crate :: bar:: status:: draw_status_items (
409+ systray_width,
410+ & temp_mon,
411+ bar_height,
412+ snapshot. status_items . as_slice ( ) ,
413+ snapshot. status_scheme . clone ( ) ,
414+ painter,
415+ )
416+ } else {
417+ ( 0 , 0 , Vec :: new ( ) )
418+ } ;
420419 hit. status_click_targets = status_click_targets;
421420
422421 draw_startmenu_icon_snapshot (
You can’t perform that action at this time.
0 commit comments