mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 15:31:31 +00:00
tx window: do not always set prompt_if_unsaved
This commit is contained in:
parent
97ffa93fcf
commit
b40f3571e8
2 changed files with 3 additions and 3 deletions
|
@ -2239,7 +2239,7 @@ class ElectrumWindow(QMainWindow):
|
||||||
tx = self.tx_from_text(data)
|
tx = self.tx_from_text(data)
|
||||||
if not tx:
|
if not tx:
|
||||||
return
|
return
|
||||||
self.show_transaction(tx)
|
self.show_transaction(tx, prompt_if_unsaved=True)
|
||||||
|
|
||||||
|
|
||||||
def read_tx_from_file(self):
|
def read_tx_from_file(self):
|
||||||
|
@ -2261,7 +2261,7 @@ class ElectrumWindow(QMainWindow):
|
||||||
return
|
return
|
||||||
tx = self.tx_from_text(text)
|
tx = self.tx_from_text(text)
|
||||||
if tx:
|
if tx:
|
||||||
self.show_transaction(tx)
|
self.show_transaction(tx, prompt_if_unsaved=True)
|
||||||
|
|
||||||
def do_process_from_file(self):
|
def do_process_from_file(self):
|
||||||
tx = self.read_tx_from_file()
|
tx = self.read_tx_from_file()
|
||||||
|
|
|
@ -143,7 +143,7 @@ class TxDialog(QDialog):
|
||||||
def sign(self):
|
def sign(self):
|
||||||
def sign_done(success):
|
def sign_done(success):
|
||||||
self.sign_button.setDisabled(False)
|
self.sign_button.setDisabled(False)
|
||||||
self.prompt_if_unsaved = True
|
self.prompt_if_unsaved = False
|
||||||
self.saved = False
|
self.saved = False
|
||||||
self.update()
|
self.update()
|
||||||
self.sign_button.setDisabled(True)
|
self.sign_button.setDisabled(True)
|
||||||
|
|
Loading…
Add table
Reference in a new issue