Skip to content

Commit

Permalink
Fix in Save dialogs, current directory is not last visited (fix asepr…
Browse files Browse the repository at this point in the history
…ite#3996)

This regression was added in 1.3rc5.
Every time you wanted to save a new sprite the dialog would start
at the root path instead of the last used directory location.
  • Loading branch information
Gasparoken committed Aug 30, 2023
1 parent 572cdf2 commit 2f9c29d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/ui/file_selector.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Aseprite
// Copyright (C) 2019-2022 Igara Studio S.A.
// Copyright (C) 2019-2023 Igara Studio S.A.
// Copyright (C) 2001-2018 David Capello
//
// This program is distributed under the terms of
Expand Down Expand Up @@ -412,8 +412,8 @@ bool FileSelector::show(

// We have to find where the user should begin to browse files
std::string start_folder_path;
if (initialPath.empty()) {
start_folder_path = get_initial_path_to_select_filename(initialPath);
if (base::get_file_path(initialPath).empty()) {
start_folder_path = get_current_dir_for_file_selector();
}
else {
start_folder_path = base::get_file_path(initialPath);
Expand Down

0 comments on commit 2f9c29d

Please sign in to comment.