def set_library_folder(self): library_folder = str(get_library_folder()) new_library_folder = QFileDialog.getExistingDirectory( self, "Select Library Folder", library_folder, options=QFileDialog.DontUseNativeDialog | QFileDialog.ShowDirsOnly) if new_library_folder and (library_folder != new_library_folder): self.LibraryFolderLineEdit.setText(new_library_folder) set_library_folder(new_library_folder) self.parent.draw_library(clear=True)
def set_library_folder(self): library_folder = Path.cwd().as_posix() new_library_folder = QFileDialog.getExistingDirectory( self, "Select Library Folder", library_folder, options=QFileDialog.DontUseNativeDialog | QFileDialog.ShowDirsOnly) if new_library_folder: set_library_folder(new_library_folder) self.draw(True) else: self.app.quit()