Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-shell-notification-center
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-shell-notification-center
Commits
42d06db3
Commit
42d06db3
authored
Jan 02, 2026
by
Erik Reider
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed potential issue where closing latest notification could fail when dismissed
Instead of getting the first/last notification in the AnimatedList, we get the first/last non-destroyed item
parent
8112744d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
animatedList.vala
src/animatedList/animatedList.vala
+14
-6
No files found.
src/animatedList/animatedList.vala
View file @
42d06db3
...
@@ -762,17 +762,25 @@ public class AnimatedList : Gtk.Widget, Gtk.Scrollable {
...
@@ -762,17 +762,25 @@ public class AnimatedList : Gtk.Widget, Gtk.Scrollable {
}
}
public
unowned
AnimatedListItem
?
get_first_item
()
{
public
unowned
AnimatedListItem
?
get_first_item
()
{
if
(
children
.
is_empty
())
{
for
(
unowned
List
<
AnimatedListItem
>
?
link
=
children
.
first
();
return
null
;
link
!=
null
;
link
=
link
.
next
)
{
if
(
link
.
data
!=
null
&&
!
link
.
data
.
destroying
)
{
return
link
.
data
;
}
}
}
return
children
.
first
().
data
;
return
null
;
}
}
public
unowned
AnimatedListItem
?
get_last_item
()
{
public
unowned
AnimatedListItem
?
get_last_item
()
{
if
(
children
.
is_empty
())
{
for
(
unowned
List
<
AnimatedListItem
>
?
link
=
children
.
last
();
return
null
;
link
!=
null
;
link
=
link
.
prev
)
{
if
(
link
.
data
!=
null
&&
!
link
.
data
.
destroying
)
{
return
link
.
data
;
}
}
}
return
children
.
last
().
data
;
return
null
;
}
}
private
bool
should_card_animate
()
{
private
bool
should_card_animate
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment