void DialogsProvider::OnBookmarks( wxCommandEvent& WXUNUSED(event) ) { /* Show/hide the open dialog */ if( !p_bookmarks_dialog ) p_bookmarks_dialog = new BookmarksDialog( p_intf, this ); if( p_bookmarks_dialog ) { p_bookmarks_dialog->Show( !p_bookmarks_dialog->IsShown() ); } }
void DialogsProvider::OnPreferences( wxCommandEvent& WXUNUSED(event) ) { /* Show/hide the open dialog */ if( !p_prefs_dialog ) p_prefs_dialog = new PrefsDialog( p_intf, this ); if( p_prefs_dialog ) { p_prefs_dialog->Show( !p_prefs_dialog->IsShown() ); } }