Skip to content

Commit df26693

Browse files
committed
Re-add now
1 parent 208ae6f commit df26693

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

src/ui/widgets.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,6 +1448,26 @@ def subscribe(self, subscribe_dialog, payg=False, payg_dialog=None, data=None, *
14481448
self.dialog.open()
14491449
yield 0.6
14501450
self.start_payment_thread_zephyr(total_arrr, mu_coin)
1451+
1452+
elif subscribe_dialog.pay_with == "now":
1453+
if self.dialog:
1454+
self.dialog.dismiss()
1455+
self.dialog = None
1456+
self.dialog = MDDialog(
1457+
title="Waiting for invoice to be paid...",
1458+
md_bg_color=get_color_from_hex(MeileColors.BLACK),
1459+
buttons=[
1460+
MDFlatButton(
1461+
text="CANCEL",
1462+
theme_text_color="Custom",
1463+
text_color=get_color_from_hex(MeileColors.MEILE),
1464+
on_release=self.cancel_payment
1465+
),
1466+
]
1467+
)
1468+
self.dialog.open()
1469+
yield 0.6
1470+
self.start_payment_thread_now(usd*ConfParams.BTCPAYADJ, mu_coin)
14511471

14521472

14531473
else:

0 commit comments

Comments
 (0)