mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-29 18:48:09 +08:00
format code
This commit is contained in:
parent
8cc1d8697f
commit
ed2c65dc0a
@ -36,7 +36,7 @@ static ret_t tk_on_choose_file_result(file_chooser_t* chooser) {
|
||||
widget_set_text_utf8(filename, "aborted");
|
||||
} else {
|
||||
widget_set_text_utf8(cwd, chooser->cwd.str);
|
||||
if(chooser->filename.str) {
|
||||
if (chooser->filename.str) {
|
||||
widget_set_text_utf8(filename, chooser->filename.str);
|
||||
} else {
|
||||
widget_set_text_utf8(filename, "");
|
||||
|
@ -91,8 +91,7 @@ ret_t file_chooser_choose(file_chooser_t* chooser) {
|
||||
widget_t* win = window_open(chooser->ui);
|
||||
|
||||
widget_child_on(win, FILE_CHOOSER_OK, EVT_CLICK, file_choose_on_ok, chooser);
|
||||
widget_child_on(win, FILE_CHOOSER_CANCEL, EVT_CLICK,
|
||||
file_choose_on_click_to_close, chooser);
|
||||
widget_child_on(win, FILE_CHOOSER_CANCEL, EVT_CLICK, file_choose_on_click_to_close, chooser);
|
||||
|
||||
return RET_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user