mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 17:29:28 +03:00
* 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>
|
2001-11-29 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* main.c (midnight_callback): Implement "auto menus".
|
||||||
|
|
||||||
* layout.c: Make more variables static.
|
* layout.c: Make more variables static.
|
||||||
|
|
||||||
* cons.saver.c: Define LINUX_CONS_SAVER_C so that some parts
|
* 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)
|
midnight_callback (struct Dlg_head *h, int id, int msg)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
static int first_pre_event = 1;
|
||||||
|
|
||||||
switch (msg){
|
switch (msg){
|
||||||
/* Speed up routine: now, we just set the */
|
|
||||||
case DLG_PRE_EVENT:
|
case DLG_PRE_EVENT:
|
||||||
make_panels_dirty ();
|
make_panels_dirty ();
|
||||||
|
if (auto_menu && first_pre_event) {
|
||||||
|
user_file_menu_cmd ();
|
||||||
|
}
|
||||||
|
first_pre_event = 0;
|
||||||
return MSG_HANDLED;
|
return MSG_HANDLED;
|
||||||
|
|
||||||
case DLG_KEY:
|
case DLG_KEY:
|
||||||
|
Loading…
Reference in New Issue
Block a user