diff options
Diffstat (limited to 'src/save.c')
| -rw-r--r-- | src/save.c | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -75,6 +75,8 @@ s32 write_mo_file(char *buffer, s32 buffer_size, s32 language_id) void save_project_to_folder(char *path_buf) { + push_notification(localize("project_saved")); + for (s32 i = 0; i < current_project->languages.length; i++) { language *lang = array_at(¤t_project->languages, i); @@ -193,14 +195,18 @@ bool read_mo_file(char *buffer, s32 buffer_size, s32 language_id) void load_project_from_folder(char *path_buf) { - string_copyn(project_path, path_buf, MAX_INPUT_LENGTH); - if (!platform_directory_exists(path_buf)) { platform_show_message(main_window, localize("error_loading_project"), localize("project_directory_does_not_exist")); return; } + char notification_buf[MAX_INPUT_LENGTH]; + sprintf(notification_buf, "%s: %s", localize("loaded"), path_buf); + push_notification(notification_buf); + + string_copyn(project_path, path_buf, MAX_INPUT_LENGTH); + if (!string_equals(project_path, "")) { add_recent_project_path(project_path); |
