hide and delete invalid pinned items #74

This commit is contained in:
piotr
2022-11-12 03:41:24 +01:00
parent 3fe6d71234
commit ebdbe71ac6
4 changed files with 16 additions and 3 deletions

View File

@@ -32,6 +32,10 @@ func setUpPinnedFlowBox() *gtk.FlowBox {
if len(pinned) > 0 {
for _, desktopID := range pinned {
entry := id2entry[desktopID]
if entry.DesktopID == "" {
log.Debugf("Pinned item doesn't seem to exist: %s", desktopID)
continue
}
btn, _ := gtk.ButtonNew()