mirror of https://github.com/MidnightCommander/mc
* main.c (midnight_callback): Implement "auto menus".
This commit is contained in:
parent
905b9ac8f8
commit
acbe83ef9c
|
@ -1,5 +1,7 @@
|
|||
2001-11-29 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* main.c (midnight_callback): Implement "auto menus".
|
||||
|
||||
* layout.c: Make more variables static.
|
||||
|
||||
* cons.saver.c: Define LINUX_CONS_SAVER_C so that some parts
|
||||
|
|
|
@ -1863,11 +1863,16 @@ int
|
|||
midnight_callback (struct Dlg_head *h, int id, int msg)
|
||||
{
|
||||
int i;
|
||||
static int first_pre_event = 1;
|
||||
|
||||
switch (msg){
|
||||
/* Speed up routine: now, we just set the */
|
||||
|
||||
case DLG_PRE_EVENT:
|
||||
make_panels_dirty ();
|
||||
if (auto_menu && first_pre_event) {
|
||||
user_file_menu_cmd ();
|
||||
}
|
||||
first_pre_event = 0;
|
||||
return MSG_HANDLED;
|
||||
|
||||
case DLG_KEY:
|
||||
|
|
Loading…
Reference in New Issue