mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
use better logic when opening dialogs
This commit is contained in:
parent
003f090621
commit
8cce933a7f
@ -57,15 +57,10 @@ class BatchAlgorithmDialog(QgsProcessingBatchAlgorithmDialogBase):
|
||||
def runAsSingle(self):
|
||||
self.close()
|
||||
|
||||
if self.algorithm().id().startswith("gdal"):
|
||||
from processing.algs.gdal.GdalAlgorithmDialog import GdalAlgorithmDialog
|
||||
|
||||
dlg = GdalAlgorithmDialog(
|
||||
self.algorithm().create(), parent=iface.mainWindow()
|
||||
)
|
||||
else:
|
||||
dlg = self.algorithm().create().createCustomParametersWidget(parent=iface.mainWindow())
|
||||
if not dlg:
|
||||
from processing.gui.AlgorithmDialog import AlgorithmDialog
|
||||
|
||||
|
||||
dlg = AlgorithmDialog(self.algorithm().create(), parent=iface.mainWindow())
|
||||
|
||||
dlg.show()
|
||||
|
Loading…
x
Reference in New Issue
Block a user