1
0

Qt: move new_channel_dialog to main_window and test available amount beforehand

This commit is contained in:
ThomasV
2023-04-02 10:07:34 +02:00
parent da802d20ad
commit 545ee24f46
4 changed files with 20 additions and 21 deletions

View File

@@ -713,7 +713,7 @@ class SendTab(QWidget, MessageBoxMixin, Logger):
self.window.rebalance_dialog(chan1, chan2, amount_sat=delta)
elif r == 1:
amount_sat, min_amount_sat = can_pay_with_new_channel
self.window.channels_list.new_channel_dialog(amount_sat=amount_sat, min_amount_sat=min_amount_sat)
self.window.new_channel_dialog(amount_sat=amount_sat, min_amount_sat=min_amount_sat)
elif r == 2:
chan, swap_recv_amount_sat = can_pay_with_swap
self.window.run_swap_dialog(is_reverse=False, recv_amount_sat=swap_recv_amount_sat, channels=[chan])