/* Called by the menu when File/Exit selected */ void menu_file_exit( int action ) { /* FIXME: this should really be sending WM_CLOSE, not duplicate code */ if( win32ui_confirm( "Exit Fuse?" ) ) { if( menu_check_media_changed() ) return; DestroyWindow(fuse_hWnd); } }
void menu_file_exit( int action ) { if( widget_do( WIDGET_TYPE_QUERY, "Exit Fuse?" ) || !widget_query.confirm ) return; if( menu_check_media_changed() ) return; fuse_exiting = 1; widget_end_all( WIDGET_FINISHED_OK ); }
void menu_file_exit( int action ) { static int menu_exit_open = 0; if( menu_exit_open ) return; menu_exit_open = 1; if( widget_do_query( "Exit Fuse?" ) || !widget_query.confirm ) { menu_exit_open = 0; return; } if( menu_check_media_changed() ) { menu_exit_open = 0; return; } fuse_exiting = 1; menu_exit_open = 0; widget_end_all( WIDGET_FINISHED_OK ); }