hide and show owned items

This commit is contained in:
BarsTiger
2022-08-09 17:25:45 +03:00
parent 12cc20175e
commit f5c0f677cb
5 changed files with 48 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ def on_rm_click(ui: Ui_MainWindow):
if ui.items_list.currentItem():
Database.remove_item(
ui.items_list.currentItem().text().removesuffix(' - ' + ui.items_list.currentItem().text().split(' - ')[-1])
.replace("", "")
)
items_list.refill_list(ui)
refill_filters(ui)