Skip to content

Commit

Permalink
chore: tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Sep 6, 2024
1 parent ad8f3a6 commit c690ad6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lala_bar/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -928,11 +928,6 @@ impl MultiApplication for LalaMusicBar {
if self.showned_notifications.len() < MAX_SHOWN_NOTIFICATIONS_COUNT
&& !self.quite_mode
{
let layer = if notify.is_critical() {
Layer::Overlay
} else {
Layer::Top
};
commands.push(Command::single(
LaLaShellIdAction::new(
iced::window::Id::MAIN,
Expand All @@ -941,7 +936,7 @@ impl MultiApplication for LalaMusicBar {
size: Some((300, 130)),
exclusive_zone: None,
anchor: Anchor::Right | Anchor::Top,
layer,
layer: Layer::Top,
margin: Some((10, 10, 10, 10)),
keyboard_interactivity: KeyboardInteractivity::OnDemand,
use_last_output: true,
Expand Down Expand Up @@ -981,6 +976,7 @@ impl MultiApplication for LalaMusicBar {
unit: *notify,
},
);

if self.notifications.len() > MAX_SHOWN_NOTIFICATIONS_COUNT
&& self.hidenid.is_none()
&& !self.quite_mode
Expand Down

0 comments on commit c690ad6

Please sign in to comment.