fix: cap index to len of pinned when inserting dnd icon
This commit is contained in:
parent
481573ec27
commit
c6291c7c09
1 changed files with 1 additions and 1 deletions
|
|
@ -1484,7 +1484,7 @@ impl cosmic::Application for CosmicAppList {
|
|||
.and_then(|o| o.dock_item.as_ref().map(|item| (item, o.preview_index)))
|
||||
{
|
||||
favorites.insert(
|
||||
index,
|
||||
index.min(favorites.len()),
|
||||
item.as_icon(
|
||||
&self.core.applet,
|
||||
None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue