Rev 9636 | Rev 9693 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9636 | Rev 9689 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | //Leency, Veliant, Punk_Joker, PavelYakov & KolibriOS Team 2008-2021 |
1 | //Leency, Veliant, Punk_Joker, PavelYakov & KolibriOS Team 2008-2022 |
2 | //GNU GPL license. |
2 | //GNU GPL license. |
Line 3... | Line 3... | ||
3 | 3 | ||
4 | /* |
4 | /* |
5 | BUGS: |
5 | BUGS: |
Line 9... | Line 9... | ||
9 | TODO: |
9 | TODO: |
10 | - add option Preserve all timestamps (Created, Opened, Modified) |
10 | - add option Preserve all timestamps (Created, Opened, Modified) |
11 | http://board.kolibrios.org/viewtopic.php?f=23&t=4521&p=77334#p77334 |
11 | http://board.kolibrios.org/viewtopic.php?f=23&t=4521&p=77334#p77334 |
12 | */ |
12 | */ |
Line 13... | Line 13... | ||
13 | 13 | ||
14 | #define ABOUT_TITLE "EOLITE 5.21" |
14 | #define ABOUT_TITLE "EOLITE 5.22" |
15 | #define TITLE_EOLITE "Eolite File Manager 5.21" |
15 | #define TITLE_EOLITE "Eolite File Manager 5.22" |
Line 16... | Line 16... | ||
16 | #define TITLE_KFM "Kolibri File Manager 2.21"; |
16 | #define TITLE_KFM "Kolibri File Manager 2.22"; |
17 | 17 | ||
18 | #define MEMSIZE 1024 * 250 |
18 | #define MEMSIZE 1024 * 250 |
19 | #include "../lib/clipboard.h" |
19 | #include "../lib/clipboard.h" |
Line 195... | Line 195... | ||
195 | 195 | ||
196 | SystemDiscs.Get(); |
196 | SystemDiscs.Get(); |
197 | OpenDir(ONLY_OPEN); |
197 | OpenDir(ONLY_OPEN); |
198 | llist_copy(#files_inactive, #files); |
198 | llist_copy(#files_inactive, #files); |
199 | SetEventMask(EVM_REDRAW+EVM_KEY+EVM_BUTTON+EVM_MOUSE+EVM_MOUSE_FILTER); |
199 | SetEventMask(EVM_REDRAW+EVM_KEY+EVM_BUTTON+EVM_MOUSE+EVM_MOUSE_FILTER); |
200 | loop() switch(@WaitEventTimeout(100)) |
200 | loop() switch(@WaitEventTimeout(150)) |
201 | { |
201 | { |
202 | case evMouse: |
202 | case evMouse: |
Line 203... | Line 203... | ||
203 | if (Form.status_window&ROLLED_UP) break; |
203 | if (Form.status_window&ROLLED_UP) break; |
Line 509... | Line 509... | ||
509 | case evReDraw: |
509 | case evReDraw: |
510 | draw_window(); |
510 | draw_window(); |
511 | if (CheckActiveProcess(Form.ID)) && (GetMenuClick()) break; |
511 | if (CheckActiveProcess(Form.ID)) && (GetMenuClick()) break; |
512 | break; |
512 | break; |
513 | default: |
513 | default: |
514 | if (!Form.status_window&ROLLED_UP) EventRefreshDisksAndFolders(); |
514 | if (!Form.status_window&ROLLED_UP) |
- | 515 | && (ESBYTE[path+1]!='f') && (ESBYTE[path+1]!='c') { |
|
- | 516 | EventRefreshDisksAndFolders(); |
|
- | 517 | } |
|
515 | } |
518 | } |
Line 516... | Line 519... | ||
516 | 519 | ||
517 | if(cmd_free) |
520 | if(cmd_free) |
518 | { |
521 | { |
Line 1275... | Line 1278... | ||
1275 | if (GetRealFileCountInFolder(location[active_panel^1]) != files_inactive.count) { |
1278 | if (GetRealFileCountInFolder(location[active_panel^1]) != files_inactive.count) { |
1276 | DrawFilePanels(); |
1279 | DrawFilePanels(); |
1277 | return; |
1280 | return; |
1278 | } |
1281 | } |
1279 | } else { |
1282 | } else { |
1280 | if (GetRealFileCountInFolder("/")+dir_exists("/kolibrios") != SystemDiscs.dev_num) { |
1283 | if (GetRealFileCountInFolder("/")+KolibriosMounted() != SystemDiscs.dev_num) { |
1281 | SystemDiscs.Get(); |
1284 | SystemDiscs.Get(); |
1282 | SystemDiscs.Draw(); |
1285 | SystemDiscs.Draw(); |
1283 | } |
1286 | } |
1284 | } |
1287 | } |
1285 | if(GetRealFileCountInFolder(path) != files.count) OpenDir(WITH_REDRAW); |
1288 | if(GetRealFileCountInFolder(path) != files.count) { |
- | 1289 | OpenDir(WITH_REDRAW); |
|
- | 1290 | } |
|
1286 | } |
1291 | } |
Line 1287... | Line 1292... | ||
1287 | 1292 | ||
1288 | void EventManualFolderRefresh() |
1293 | void EventManualFolderRefresh() |
1289 | { |
1294 | { |