mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-30 08:51:32 +00:00
Make more dialogs window modal
This commit is contained in:
parent
6442dd59ad
commit
d98451f114
1 changed files with 6 additions and 18 deletions
|
@ -794,8 +794,7 @@ class ElectrumWindow(QMainWindow, PrintError):
|
||||||
self.save_request_button.setEnabled(False)
|
self.save_request_button.setEnabled(False)
|
||||||
|
|
||||||
def view_and_paste(self, title, msg, data):
|
def view_and_paste(self, title, msg, data):
|
||||||
dialog = QDialog(self)
|
dialog = WindowModalDialog(self, title)
|
||||||
dialog.setWindowTitle(title)
|
|
||||||
vbox = QVBoxLayout()
|
vbox = QVBoxLayout()
|
||||||
label = QLabel(msg)
|
label = QLabel(msg)
|
||||||
label.setWordWrap(True)
|
label.setWordWrap(True)
|
||||||
|
@ -1907,9 +1906,7 @@ class ElectrumWindow(QMainWindow, PrintError):
|
||||||
|
|
||||||
@protected
|
@protected
|
||||||
def new_account_dialog(self, password):
|
def new_account_dialog(self, password):
|
||||||
dialog = QDialog(self)
|
dialog = WindowModalDialog(self, _("New Account"))
|
||||||
dialog.setModal(1)
|
|
||||||
dialog.setWindowTitle(_("New Account"))
|
|
||||||
vbox = QVBoxLayout()
|
vbox = QVBoxLayout()
|
||||||
vbox.addWidget(QLabel(_('Account name')+':'))
|
vbox.addWidget(QLabel(_('Account name')+':'))
|
||||||
e = QLineEdit()
|
e = QLineEdit()
|
||||||
|
@ -1932,11 +1929,7 @@ class ElectrumWindow(QMainWindow, PrintError):
|
||||||
|
|
||||||
|
|
||||||
def show_master_public_keys(self):
|
def show_master_public_keys(self):
|
||||||
|
dialog = WindowModalDialog(self, "Master Public Keys")
|
||||||
dialog = QDialog(self)
|
|
||||||
dialog.setModal(1)
|
|
||||||
dialog.setWindowTitle(_("Master Public Keys"))
|
|
||||||
|
|
||||||
mpk_dict = self.wallet.get_master_public_keys()
|
mpk_dict = self.wallet.get_master_public_keys()
|
||||||
vbox = QVBoxLayout()
|
vbox = QVBoxLayout()
|
||||||
# only show the combobox in case multiple accounts are available
|
# only show the combobox in case multiple accounts are available
|
||||||
|
@ -2069,9 +2062,7 @@ class ElectrumWindow(QMainWindow, PrintError):
|
||||||
|
|
||||||
|
|
||||||
def sign_verify_message(self, address=''):
|
def sign_verify_message(self, address=''):
|
||||||
d = QDialog(self)
|
d = WindowModalDialog(self, _('Sign/verify Message'))
|
||||||
d.setModal(1)
|
|
||||||
d.setWindowTitle(_('Sign/verify Message'))
|
|
||||||
d.setMinimumSize(410, 290)
|
d.setMinimumSize(410, 290)
|
||||||
|
|
||||||
layout = QGridLayout(d)
|
layout = QGridLayout(d)
|
||||||
|
@ -2130,9 +2121,7 @@ class ElectrumWindow(QMainWindow, PrintError):
|
||||||
|
|
||||||
|
|
||||||
def encrypt_message(self, address = ''):
|
def encrypt_message(self, address = ''):
|
||||||
d = QDialog(self)
|
d = WindowModalDialog(self, _('Encrypt/decrypt Message'))
|
||||||
d.setModal(1)
|
|
||||||
d.setWindowTitle(_('Encrypt/decrypt Message'))
|
|
||||||
d.setMinimumSize(610, 490)
|
d.setMinimumSize(610, 490)
|
||||||
|
|
||||||
layout = QGridLayout(d)
|
layout = QGridLayout(d)
|
||||||
|
@ -2410,8 +2399,7 @@ class ElectrumWindow(QMainWindow, PrintError):
|
||||||
|
|
||||||
|
|
||||||
def export_history_dialog(self):
|
def export_history_dialog(self):
|
||||||
d = QDialog(self)
|
d = WindowModalDialog(self, _('Export History'))
|
||||||
d.setWindowTitle(_('Export History'))
|
|
||||||
d.setMinimumSize(400, 200)
|
d.setMinimumSize(400, 200)
|
||||||
vbox = QVBoxLayout(d)
|
vbox = QVBoxLayout(d)
|
||||||
defaultname = os.path.expanduser('~/electrum-history.csv')
|
defaultname = os.path.expanduser('~/electrum-history.csv')
|
||||||
|
|
Loading…
Add table
Reference in a new issue