KFM2 bugsfix: unselect files after delete and move operations

git-svn-id: svn://kolibrios.org@8995 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2021-07-04 12:21:21 +00:00
parent 5f1af2011f
commit 27a31fa094
2 changed files with 6 additions and 6 deletions

View File

@ -8,9 +8,9 @@ TODO:
- 70.5 - get volume info and label - 70.5 - get volume info and label
*/ */
#define ABOUT_TITLE "EOLITE 5 Gold" #define ABOUT_TITLE "EOLITE 5.01 Gold"
#define TITLE_EOLITE "Eolite File Manager 5 Gold" #define TITLE_EOLITE "Eolite File Manager 5.01 Gold"
#define TITLE_KFM "Kolibri File Manager 2 Gold"; #define TITLE_KFM "Kolibri File Manager 2.01 Gold";
#define MEMSIZE 1024 * 250 #define MEMSIZE 1024 * 250
#include "../lib/clipboard.h" #include "../lib/clipboard.h"
@ -1066,7 +1066,7 @@ void EventPopinClickOkay()
break; break;
case POPIN_DELETE: case POPIN_DELETE:
CopyFilesListToClipboard(DELETE); CopyFilesListToClipboard(DELETE);
EventClosePopinForm(); EventChooseAllFiles(false);
sprintf(#param, "-d %s", #file_path); sprintf(#param, "-d %s", #file_path);
RunProgram(#program_path, #param); RunProgram(#program_path, #param);
break; break;
@ -1175,6 +1175,7 @@ void FnProcess(byte N)
case 6: case 6:
if (efm) { if (efm) {
CopyFilesListToClipboard(CUT); CopyFilesListToClipboard(CUT);
EventChooseAllFiles(false);
EventPaste(location[active_panel^1]); EventPaste(location[active_panel^1]);
} }
break; break;

View File

@ -26,8 +26,7 @@ void setElementSelectedFlag(dword n, int state) {
selected1.set(n, state); selected1.set(n, state);
} }
if (state==true) selected_count[active_panel]++; if (state==true) selected_count[active_panel]++;
if (state==false) selected_count[active_panel]--; if (state==false) && (selected_count[active_panel]>0) selected_count[active_panel]--;
//if (selected_count[active_panel]<0) selected_count[active_panel]=0;
} }
int getElementSelectedFlag(dword n) { int getElementSelectedFlag(dword n) {