forked from KolibriOS/kolibrios
Resolves #218 --------- Co-authored-by: Burer <burer@kolibrios.org> Reviewed-on: KolibriOS/kolibrios#372 Reviewed-by: Burer <burer@kolibrios.org> Reviewed-by: Mikhail Frolov <mixa.frolov2003@gmail.com> Co-authored-by: Dilkhush Purohit <dilkhushpurohit01@gmail.com> Co-committed-by: Dilkhush Purohit <dilkhushpurohit01@gmail.com>
This commit is contained in:
1 parent
e05b57a95e
commit
86c685ed4b
2 files changed
+8
-6
No files matched your search
@@ -10,9 +10,9 @@ TODO:
|
||||
http://board.kolibrios.org/viewtopic.php?f=23&t=4521&p=77334#p77334
|
||||
*/
|
||||
|
||||
#define ABOUT_TITLE "Eolite 5.32"
|
||||
#define TITLE_EOLITE "Eolite File Manager 5.32"
|
||||
#define TITLE_KFM "Kolibri File Manager 2.32";
|
||||
#define ABOUT_TITLE "Eolite 5.33"
|
||||
#define TITLE_EOLITE "Eolite File Manager 5.33"
|
||||
#define TITLE_KFM "Kolibri File Manager 2.33";
|
||||
|
||||
#define MEMSIZE 1024 * 250
|
||||
#include "../lib/clipboard.h"
|
||||
|
||||
@@ -89,7 +89,7 @@ void RESULTS::drop()
|
||||
|
||||
void SearchThread()
|
||||
{
|
||||
int prev_first, prev_cur_y;
|
||||
int prev_first, prev_cur_y, clicked_item;
|
||||
|
||||
load_dll(Proc_lib, #OpenDialog_init,0);
|
||||
OpenDialog_init stdcall (#open_folder_dialog);
|
||||
@@ -112,15 +112,17 @@ void SearchThread()
|
||||
SelectList_Draw();
|
||||
} else {
|
||||
SelectList_DrawLine(select_list.cur_y);
|
||||
|
||||
clicked_item = mouse.y - select_list.y / select_list.item_h + select_list.first;
|
||||
|
||||
if (select_list.MouseOver(mouse.x, mouse.y))
|
||||
{
|
||||
if (mouse.key&MOUSE_LEFT) && (mouse.up) {
|
||||
if (prev_cur_y == select_list.cur_y) EventRunFile();
|
||||
if ((prev_cur_y == select_list.cur_y) && (clicked_item < results.count)) EventRunFile();
|
||||
}
|
||||
|
||||
if (mouse.key&MOUSE_RIGHT) && (mouse.up) {
|
||||
EventShowFileInFolder();
|
||||
if ((prev_cur_y == select_list.cur_y) && (clicked_item < results.count)) EventShowFileInFolder();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user