diff options
author | Aylur <[email protected]> | 2024-09-26 00:32:03 +0000 |
---|---|---|
committer | Aylur <[email protected]> | 2024-09-26 00:32:03 +0000 |
commit | 00738c9383472b9fd83d65785215c5a97a58159f (patch) | |
tree | d9f91a890f6a01886496a58f4bc761619f5df09d /examples/vala/simple-bar/widget/Bar.vala | |
parent | d24e3e39526a88a00ca9e11f168d9c705a21d25a (diff) |
add: python example bar
Diffstat (limited to 'examples/vala/simple-bar/widget/Bar.vala')
-rw-r--r-- | examples/vala/simple-bar/widget/Bar.vala | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/vala/simple-bar/widget/Bar.vala b/examples/vala/simple-bar/widget/Bar.vala index 438e8b7..6e99327 100644 --- a/examples/vala/simple-bar/widget/Bar.vala +++ b/examples/vala/simple-bar/widget/Bar.vala @@ -137,10 +137,9 @@ class SysTray : Gtk.Box { } void remove_item(string id) { - if (!items.contains(id)) - return; - - items.remove(id); + if (items.contains(id)) { + items.remove(id); + } } } |