1
0

qt: move setting frozen styling to edit components themselves, fix re-enabling Clear button after finalize

This commit is contained in:
Sander van Grieken
2023-06-26 12:58:10 +02:00
parent ca283a75d0
commit eed016bd7e
5 changed files with 26 additions and 45 deletions

View File

@@ -245,8 +245,9 @@ class PaymentIdentifier(Logger):
self.logger.debug(f'PI state {self._state} -> {state}')
self._state = state
def is_state(self, state: 'PaymentIdentifierState'):
return self._state == state
@property
def state(self):
return self._state
def need_resolve(self):
return self._state == PaymentIdentifierState.NEED_RESOLVE