Eolite v1.98.7: you can only run one window "About Eolite"

git-svn-id: svn://kolibrios.org@4040 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Serhii Sakhno 2013-10-16 21:03:17 +00:00
parent 53cca077c5
commit bde6d41e51
2 changed files with 16 additions and 4 deletions

View File

@ -76,8 +76,8 @@
enum {ONLY_SHOW, WITH_REDRAW, ONLY_OPEN}; //OpenDir
#define TITLE "Eolite File Manager v1.98.6"
#define ABOUT_TITLE "Eolite v1.98.6"
#define TITLE "Eolite File Manager v1.98.7"
#define ABOUT_TITLE "Eolite v1.98.7"
dword col_work = 0xE4DFE1;
dword col_border = 0x9098B0; //A0A0B8; //0x819FC5;
dword col_padding = 0xC8C9C9;
@ -88,6 +88,8 @@ int toolbar_buttons_x[7]={9,46,85,134,167,203};
char tmp_disk_del_param[3]="d0";
struct path_string { char Item[4096]; };
int active_about=0;
llist files;
byte

View File

@ -24,16 +24,26 @@
void about_dialog()
{
byte id;
IF (active_about) ExitProcess();
active_about=1;
loop() switch(WaitEvent())
{
case evButton:
id=GetButtonID();
IF (id==1) || (id==10) ExitProcess();
IF (id==1) || (id==10)
{
active_about=0;
ExitProcess();
}
IF (id==23) RunProgram(BROWSER_PATH, BROWSER_LINK);
break;
case evKey:
IF (GetKey()==27) ExitProcess();
IF (GetKey()==27)
{
active_about=0;
ExitProcess();
}
break;
case evReDraw: