diff options
-rw-r--r-- | mediainfo/src/mi-app.vala | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mediainfo/src/mi-app.vala b/mediainfo/src/mi-app.vala index 7e6bbc6..88dfdec 100644 --- a/mediainfo/src/mi-app.vala +++ b/mediainfo/src/mi-app.vala @@ -62,10 +62,6 @@ public class MediaInfo.App : Window chooser = new FileChooserWidget (FileChooserAction.OPEN); paned.pack1 (chooser, false, false); - if (directory != null) { - //chooser.set_current_folder (GLib.Environment.get_home_dir ()); - chooser.set_current_folder (directory); - } chooser.set_show_hidden (false); if (uri != null) { @@ -75,6 +71,13 @@ public class MediaInfo.App : Window return false; }); } else { + if (directory != null) { + //chooser.set_current_folder (GLib.Environment.get_home_dir ()); + Idle.add ( () => { + chooser.set_current_folder (directory); + return false; + }); + } chooser.selection_changed.connect (on_update_preview); } |