Commit Graph

6 Commits

Author SHA1 Message Date
Sander van Grieken
3c1e4ba5a5 qml: remove Dialog standardButtons everywhere 2023-01-17 18:03:13 +01:00
Sander van Grieken
623bdcdabe qml: switching dialog buttons seems to SEGV sometimes 2023-01-16 14:54:42 +01:00
Sander van Grieken
3ace53391f qml: disable pay button while editing amount, perform minimum amount check for lightning invoices, update amount in invoice list. 2022-10-26 11:12:58 +02:00
Sander van Grieken
3b9c009e43 qml: include dialogs in back button navigation 2022-07-26 18:01:25 +02:00
Sander van Grieken
7cb8c347b5 Add @auth_protect decorator.
This guards function calls by storing the function, args and kwargs into
an added attribute '__auth_fcall' on the object using the decorator,
then emits a signal that can be handled by the UI.

The UI can signal auth-success or auth-failure back to the object by
calling either the authProceed() slot or the authCancel slot.

The object utilizing this decorator MUST inherit/mixin the AuthMixin
class, which provides the above two slots, and handling of state.

The decorator also accepts a 'reject' parameter, containing the name of
a parameterless function on the object, which is called when
authentication has failed/is cancelled.
2022-07-07 18:29:01 +02:00
Sander van Grieken
8f8a1fc8cf wip 2022-07-07 18:29:01 +02:00