fix(app-list): increment id counter before use

This commit is contained in:
Ashley Wulber 2023-09-20 16:28:53 -04:00 committed by Ashley Wulber
parent c67c1911c5
commit 2552578eab

View file

@ -811,6 +811,7 @@ impl cosmic::Application for CosmicAppList {
{
self.active_list.remove(p)
} else {
self.item_ctr += 1;
DockItem {
id: self.item_ctr,
toplevels: Default::default(),