mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-18 21:53:58 +00:00
Create the options dialog only once and reuse the existing instance.
This commit is contained in:
@@ -120,7 +120,11 @@ class OptionsDialogProvider(Component):
|
||||
|
||||
pages = ExtensionPoint(IOptionsPage)
|
||||
|
||||
def __init__(self):
|
||||
self.dlg = None
|
||||
|
||||
def get_options_dialog(self, parent=None, default_page=None):
|
||||
self.dlg = OptionsDialog(parent, self.pages, default_page)
|
||||
if not self.dlg:
|
||||
self.dlg = OptionsDialog(parent, self.pages, default_page)
|
||||
return self.dlg
|
||||
|
||||
|
||||
Reference in New Issue
Block a user