Added default case to Positions in notification and notificationWindow

This commit is contained in:
Erik Reider 2023-02-19 14:50:33 +01:00
parent fa9f4879cf
commit 8ca741e4aa
2 changed files with 2 additions and 0 deletions

View File

@ -175,6 +175,7 @@ namespace SwayNotificationCenter {
this.carousel.reorder (event_box, 0);
this.carousel_empty_widget_index = 1;
break;
default:
case PositionX.RIGHT:
case PositionX.CENTER:
this.carousel.scroll_to (event_box);

View File

@ -88,6 +88,7 @@ namespace SwayNotificationCenter {
this, GtkLayerShell.Edge.BOTTOM, true);
list_reverse = true;
break;
default:
case PositionY.TOP:
list_reverse = false;
GtkLayerShell.set_anchor (