code: keep status coloration when making a new search

This commit is contained in:
Solene Rapenne 2022-05-05 21:27:58 +02:00
parent e0b2253778
commit 22787a2647
1 changed files with 7 additions and 1 deletions

View File

@ -120,9 +120,15 @@ func _on_LineEdit_text_entered(text):
if s["comment"]:
root.set_text(1, s["comment"])
root.set_text(1, s["descr"])
if s["pkgname"] in installed_packages:
if s["pkgname"] in packages_to_delete:
root.set_metadata(0, "to_delete")
root.set_custom_bg_color(0, color_delete)
elif s["pkgname"] in installed_packages:
root.set_metadata(0, "installed")
root.set_custom_bg_color(0, color_installed)
elif s["pkgname"] in packages:
root.set_metadata(0, "for_install")
root.set_custom_bg_color(0, color_toinstall)
func reset_display():
$ConsolePanel.hide()