Commit Graph

31 Commits

Author SHA1 Message Date
Sander van Grieken
9b1566705d qml: swap: disable choose provider button during active swap. 2025-08-04 12:56:46 +02:00
f321x
3a39abc415 fix: use single long lived transport in qeswaphelper
changes qeswaphelper to shate a single, long lived transport instance
instead of opening new transports to do swaps and fetch offers.
This allows to continuosly fetch offers, so events which get returned
later by slow relays don't get missed and the fee values stay updated.
Also fixes a race causing the list to miss some swapservers, as the
current implementation fetches only until
`swap_manager.is_initialized()` is set, which will get set as soon as an
event of the configured swapserver is received. So if the event of the
configured swapserver is received as first, all server events coming in
after it would get ignored.
2025-06-06 14:38:11 +02:00
Sander van Grieken
4494c3e2b5 qml: swap: don't show long swap success message in info box, show in popup instead
and close swap dialog after accept.
2025-03-21 18:16:57 +01:00
Sander van Grieken
993a575b7f submarine_swaps: implement swaps-over-nostr for qml 2025-02-14 09:54:09 +01:00
Sander van Grieken
8b567ae447 qml: remove all QML imports version numbers 2023-11-07 10:17:08 +01:00
Sander van Grieken
bbfe5225b6 qml: port cancel normal swap feature from desktop client 2023-09-18 16:13:32 +02:00
Sander van Grieken
a23457f48d qml: consistency camelcase pyqtProperties 2023-04-25 14:15:13 +02:00
Sander van Grieken
3cab3b86b4 qml: remove SwapProgressDialog, introduce qeswaphelper.state and enable dialog elements
depending on qeswaphelper.state

TODO: we can now retrieve the pairs from the service asynchronously, which should eliminate
the startup delay when showing the SwapDialog
2023-04-14 14:32:56 +02:00
Sander van Grieken
51356dff18 Revert "qml: add busy property and guards around swaphelper"
This reverts commit 5d350184a4.
2023-04-12 12:32:25 +02:00
Sander van Grieken
5d350184a4 qml: add busy property and guards around swaphelper 2023-04-06 10:11:31 +02:00
Sander van Grieken
e02ca6b2d8 qml: add logging of instance around SwapDialog create/destroy and swap trigger 2023-04-06 09:26:52 +02:00
Sander van Grieken
7ac3afdcda qml: fixes 2023-04-05 13:13:50 +02:00
Sander van Grieken
e362ac52fa qml: styling 2023-04-03 14:01:59 +02:00
ThomasV
02f093c2d2 qml SwapDialog: move userinfo to the top, make it constant, add padding and labels below the slider 2023-04-01 13:46:46 +02:00
ThomasV
a270bb5c43 qml swap dialog: show normal swap amount without mining fee, to be consistent with the qt GUI. 2023-03-29 16:27:40 +02:00
Sander van Grieken
677e1259df qml: ElDialog now defaults to parent on Overlay.overlay
This was replicated in basically all ElDialog derived dialogs
2023-03-20 16:53:40 +01:00
ThomasV
6890268b1d qml: fix display of server fee in swap dialog
The previously displayed amount was not the percentage,
but the mining fee plus the percentage.
2023-03-16 19:29:56 +01:00
Sander van Grieken
67cb08a835 qml: slider render voids 2023-03-16 15:03:05 +01:00
Sander van Grieken
f49ef14de8 qml: SwapDialog slider styling; add zero tick and fill slider range from zero 2023-03-16 14:14:46 +01:00
ThomasV
5b8fdacac9 qml: ensure that the slider neutral position is in the middle of the screen 2023-03-16 12:13:14 +01:00
Sander van Grieken
cb5a9e499f qml: SwapDialog ok button 2023-03-10 12:52:04 +01:00
Sander van Grieken
15d73daf8d qml: fix lifecycle issues with swap helper.
previously tied to Channels view, now dynamically created and parented to app
2023-02-16 13:24:23 +01:00
Sander van Grieken
6cb6531fd9 qml: add swap progress dialog 2023-02-08 17:12:20 +01:00
Sander van Grieken
3c1e4ba5a5 qml: remove Dialog standardButtons everywhere 2023-01-17 18:03:13 +01:00
Sander van Grieken
0c728fd13f qml: close SwapDialog only after starting swap. 2023-01-16 09:56:52 +01:00
Sander van Grieken
ffcd533a8d qml: refactor OpenChannel to dialog, fix lifecycle/race conditions swap & openchannel 2022-11-30 15:10:35 +01:00
Sander van Grieken
56e37f74d4 qml: swapdialog styling fixes 2022-11-30 14:20:29 +01:00
Sander van Grieken
6e3bd69e80 qml: fix normal submarine swap max amount calculation, add error reporting to swap initiation 2022-11-18 13:40:20 +01:00
Sander van Grieken
d95b18c510 qml: update swaphelper server fee 2022-11-15 19:41:08 +01:00
Sander van Grieken
daffa1a731 qml: ui swapdialog 2022-10-21 14:00:35 +02:00
Sander van Grieken
3b9c009e43 qml: include dialogs in back button navigation 2022-07-26 18:01:25 +02:00