Some random change I want to keep

master
Allen Webster 2020-01-16 18:08:51 -08:00
parent 0bbafd636e
commit 939c568285
1 changed files with 1 additions and 1 deletions

View File

@ -397,7 +397,7 @@ get_file_name_from_user(Application_Links *app, Arena *arena, String_Const_u8 qu
result.file_name_in_text_field = string_front_of_path(l_result.text_field); result.file_name_in_text_field = string_front_of_path(l_result.text_field);
String_Const_u8 path = {}; String_Const_u8 path = {};
if (result.file_name_in_text_field.size == 0 && l_result.text_field.size > 0){ if (!result.is_folder && result.file_name_in_text_field.size == 0 && l_result.text_field.size > 0){
result.file_name_in_text_field = string_front_folder_of_path(l_result.text_field); result.file_name_in_text_field = string_front_folder_of_path(l_result.text_field);
path = string_remove_front_folder_of_path(l_result.text_field); path = string_remove_front_folder_of_path(l_result.text_field);
} }