mirror of
https://github.com/fergalmoran/picard.git
synced 2026-02-25 17:13:57 +00:00
Tweak Add Directory path persistance
Stop Add Directory opening one directory higher if you don't select any sub-directories.
This commit is contained in:
@@ -735,7 +735,7 @@ class MainWindow(QtGui.QMainWindow):
|
||||
|
||||
dir_count = len(dir_list)
|
||||
if dir_count:
|
||||
parent = os.path.dirname(dir_list[0])
|
||||
parent = os.path.dirname(dir_list[0]) if dir_count > 1 else dir_list[0]
|
||||
config.persist["current_directory"] = parent
|
||||
if dir_count > 1:
|
||||
self.set_statusbar_message(
|
||||
|
||||
Reference in New Issue
Block a user