From 89001f353c435762e7f28bd316c404371738680c Mon Sep 17 00:00:00 2001 From: nisargshah95 Date: Fri, 19 Oct 2018 09:42:23 +0000 Subject: [PATCH] ftpc: - reduce log font size - refresh local directory list after download git-svn-id: svn://kolibrios.org@7487 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/network/ftpc/gui.inc | 2 +- programs/network/ftpc/servercommands.inc | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/programs/network/ftpc/gui.inc b/programs/network/ftpc/gui.inc index 9eca681fd9..46e2d82b9b 100755 --- a/programs/network/ftpc/gui.inc +++ b/programs/network/ftpc/gui.inc @@ -1038,7 +1038,7 @@ tedit0: .fun_save_err dd 0 ;+238 .increase_size dd 1000 ;+242 .ptr_free_symb dd ? ;+246 - .font_size dd 16 shl 24 ; +250 + .font_size dd 16 shl 16 ; +250 align 4 scrol_w1: diff --git a/programs/network/ftpc/servercommands.inc b/programs/network/ftpc/servercommands.inc index 17f8486e15..f1e1e45526 100644 --- a/programs/network/ftpc/servercommands.inc +++ b/programs/network/ftpc/servercommands.inc @@ -228,6 +228,14 @@ data_loop: .done: icall eax, interface_addr, interface.print, str_close mcall close, [datasocket] + + ; refresh local directory list if in gui + cmp [operation], OPERATION_RETR + jne @f + cmp [interface_addr], gui + jne @f + call populate_local_tree_list + @@: mov [operation], OPERATION_NONE jmp wait_for_servercommand