From c2f42e4ff29153e5685034ff8c77afca6ecb6494 Mon Sep 17 00:00:00 2001 From: Adam Tyson Date: Mon, 18 Dec 2023 09:00:13 +0000 Subject: [PATCH] Use native dialogs when choosing/setting directories (#153) Co-authored-by: Alessandro Felder --- brainglobe_segmentation/segment.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/brainglobe_segmentation/segment.py b/brainglobe_segmentation/segment.py index 18c04df..c27d2fb 100644 --- a/brainglobe_segmentation/segment.py +++ b/brainglobe_segmentation/segment.py @@ -331,12 +331,9 @@ def initialise_atlas(self): def set_output_directory(self): self.status_label.setText("Loading...") - options = QFileDialog.Options() - options |= QFileDialog.DontUseNativeDialog self.directory = QFileDialog.getExistingDirectory( self, "Select output directory", - options=options, ) if self.directory != "": self.directory = Path(self.directory) @@ -385,12 +382,9 @@ def get_brainreg_directory(self, atlas_space): self.atlas_space = False self.status_label.setText("Loading...") - options = QFileDialog.Options() - options |= QFileDialog.DontUseNativeDialog brainreg_directory = QFileDialog.getExistingDirectory( self, "Select brainreg directory", - options=options, ) if not brainreg_directory: