Eolite 2.2: small optimization

git-svn-id: svn://kolibrios.org@4860 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2014-04-20 09:19:44 +00:00
parent af64af58cc
commit aaf67062bc
2 changed files with 4 additions and 6 deletions

View File

@ -81,8 +81,8 @@
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
#define TITLE "Eolite File Manager v2.19" #define TITLE "Eolite File Manager v2.2"
#define ABOUT_TITLE "Eolite v2.19" #define ABOUT_TITLE "Eolite v2.2"
dword col_padding, col_selec, col_lpanel; dword col_padding, col_selec, col_lpanel;
int toolbar_buttons_x[7]={9,46,85,134,167,203}; int toolbar_buttons_x[7]={9,46,85,134,167,203};
@ -306,11 +306,9 @@ void main()
Dir_Up(); Dir_Up();
break; break;
case 24: //cut case 24: //cut
add_to_copy(#file_path);
Copy(#file_path, CUT); Copy(#file_path, CUT);
break; break;
case 25: //copy case 25: //copy
add_to_copy(#file_path);
Copy(#file_path, NOCUT); Copy(#file_path, NOCUT);
break; break;
case 26: //paste case 26: //paste
@ -381,11 +379,9 @@ void main()
RunProgram("/sys/File Managers/Eolite", #path); RunProgram("/sys/File Managers/Eolite", #path);
break; break;
case 024: //Ctrl+X case 024: //Ctrl+X
add_to_copy(#file_path);
Copy(#file_path, CUT); Copy(#file_path, CUT);
break; break;
case 003: //Ctrl+C case 003: //Ctrl+C
add_to_copy(#file_path);
Copy(#file_path, NOCUT); Copy(#file_path, NOCUT);
break; break;
case 022: //Ctrl+V case 022: //Ctrl+V
@ -429,6 +425,7 @@ void main()
break; break;
case 185: //ins case 185: //ins
add_to_copy(#file_path); add_to_copy(#file_path);
notify("'Eolite\nFile was added to copy queue' -tI");
break; break;
case 050...059: //F1-F10 case 050...059: //F1-F10
FnProcess(key-49); FnProcess(key-49);

View File

@ -32,6 +32,7 @@ void add_to_copy(dword pcth)
void Copy(dword pcth, char cut) void Copy(dword pcth, char cut)
{ {
add_to_copy(pcth);
copy_path.type = 3; copy_path.type = 3;
copy_path.size = sizeof(copy_path); copy_path.size = sizeof(copy_path);
clipboard.SetSlotData(sizeof(copy_path), #copy_path); clipboard.SetSlotData(sizeof(copy_path), #copy_path);