tx window: do not always set prompt_if_unsaved
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user