Skip to content

Commit

Permalink
Use native dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
adamltyson committed Dec 15, 2023
1 parent a673b22 commit 473cb99
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions brainglobe_segmentation/segment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 473cb99

Please sign in to comment.