Skip to content

Commit

Permalink
open in add-on's scenario directory when saving scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
babaissarkar committed May 23, 2024
1 parent 6c3fb10 commit 64f136c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/map/context_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ void context_manager::save_scenario_as_dialog()
{
std::string input_name = get_map_context().get_filename();
if(input_name.empty()) {
input_name = filesystem::get_legacy_editor_dir()+"/scenarios";
input_name = filesystem::get_current_editor_dir(editor_controller::current_addon_id_) + "/scenarios";
}

gui2::dialogs::file_dialog dlg;
Expand Down

0 comments on commit 64f136c

Please sign in to comment.