From ce87a4e1504c2044decffb1bd005a34f9561cab6 Mon Sep 17 00:00:00 2001 From: "Kirill Lipatov (Leency)" Date: Wed, 5 Oct 2016 19:33:49 +0000 Subject: [PATCH] Eolite: Fix status two bar issues git-svn-id: svn://kolibrios.org@6570 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/cmm/clipview/clipview.c | 2 +- programs/cmm/eolite/Eolite.c | 15 +++++++-------- programs/cmm/eolite/include/translations.h | 4 ++-- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/programs/cmm/clipview/clipview.c b/programs/cmm/clipview/clipview.c index 7b2982f200..c88a09949b 100644 --- a/programs/cmm/clipview/clipview.c +++ b/programs/cmm/clipview/clipview.c @@ -17,7 +17,7 @@ // // //===================================================// -?define WINDOW_HEADER "Clipboard viewer v1.01" +?define WINDOW_HEADER "Clipboard Viewer v1.01" ?define T_DELETE_LAST_SLOT "Delete last slot" ?define T_DELETE_ALL_SLOTS "Delete all slots" ?define T_RESET_BUFFER_LOCK "Reset the lock buffer" diff --git a/programs/cmm/eolite/Eolite.c b/programs/cmm/eolite/Eolite.c index baa6f08af0..6f26baa5cb 100644 --- a/programs/cmm/eolite/Eolite.c +++ b/programs/cmm/eolite/Eolite.c @@ -76,7 +76,6 @@ byte file_name[256], new_element_name[256], temp[4096], - status_bar_str[50], itdir; char active_path[4096], inactive_path[4096]; @@ -592,9 +591,12 @@ void DrawList() void DrawStatusBar() { + char status_bar_str[50]; + int go_up_folder_exists=0; if (!show_status_bar) return; + if (files.count>0) && (strcmp(file_mas[0]*304+buf+72,"..")==0) go_up_folder_exists=1;; DrawBar(1, Form.cheight - status_bar_h-1, Form.cwidth-2, status_bar_h, system.color.work); - sprintf(#status_bar_str, STATUS_STR, files.count-1, count_dir-1, files.count-count_dir, selected_count); + sprintf(#status_bar_str, STATUS_STR, files.count-go_up_folder_exists, count_dir-go_up_folder_exists, files.count-count_dir, selected_count); WriteText(6,Form.cheight - 13,0x80,0x000000,#status_bar_str); } @@ -760,7 +762,6 @@ void Line_ReDraw(dword bgcol, filenum){ void Open_Dir(dword dir_path, redraw){ int errornum, maxcount, i; - count_dir = 0; if (redraw!=ONLY_SHOW) { if (ESBYTE[dir_path+1]!='\0') ESBYTE[dir_path+strlen(dir_path)-1] = '\0'; @@ -778,10 +779,6 @@ void Open_Dir(dword dir_path, redraw){ if (files.count>maxcount) files.count = maxcount; if (files.count>0) && (files.cur_y-files.first==-1) files.cur_y=0; } - for (i=0; i=0; ind--;) { if (!strcmp(file_mas[ind]*304+buf+72,that_file)) break; } files.cur_y = ind - 1; files.KeyDown(); + DrawStatusBar(); List_ReDraw(); } diff --git a/programs/cmm/eolite/include/translations.h b/programs/cmm/eolite/include/translations.h index 2bf8e17bba..ab5b62d4ef 100644 --- a/programs/cmm/eolite/include/translations.h +++ b/programs/cmm/eolite/include/translations.h @@ -1,5 +1,5 @@ -#define TITLE "Eolite File Manager v3.63" -#define ABOUT_TITLE "EOLITE 3.63" +#define TITLE "Eolite File Manager v3.64" +#define ABOUT_TITLE "EOLITE 3.64" #ifdef LANG_RUS ?define T_FILE "” ©«"