From 67deb962bcf92641e54d675b5a82e3952cd1c78e Mon Sep 17 00:00:00 2001 From: Sergiotarxz Date: Tue, 12 Nov 2024 23:55:31 +0100 Subject: [PATCH] v1.0.13 --- lib/Exd/Gui/Instance.pm | 4 ++-- me.sergiotarxz.Exd.metainfo.xml | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/Exd/Gui/Instance.pm b/lib/Exd/Gui/Instance.pm index e807962..d55ede2 100644 --- a/lib/Exd/Gui/Instance.pm +++ b/lib/Exd/Gui/Instance.pm @@ -727,8 +727,8 @@ sub _on_receive_price($self) { my $price_label = Gtk4::Label->new(undef); $price_label->set_markup("$priceā‚¬"); $box->append($price_label); - $box->append($starting_price_label); - if ( $discount > 2 ) { + if ( defined $discount && $discount > 2 ) { + $box->append($starting_price_label); $box->append($discount_label); } $window_price_discount->set_child($box); diff --git a/me.sergiotarxz.Exd.metainfo.xml b/me.sergiotarxz.Exd.metainfo.xml index 31722b9..b1f8478 100644 --- a/me.sergiotarxz.Exd.metainfo.xml +++ b/me.sergiotarxz.Exd.metainfo.xml @@ -30,6 +30,11 @@ + + +

Make discount to show the previous price

+
+

Make more prominent affiliated printers and supplies and implementing discounts