Commit c6987e70 authored by twanvl's avatar twanvl

no menu item for profiler when it is disabled

parent 7ecab921
...@@ -588,10 +588,12 @@ void SetWindow::onFileCheckUpdates(wxCommandEvent&) { ...@@ -588,10 +588,12 @@ void SetWindow::onFileCheckUpdates(wxCommandEvent&) {
//Destroy(); //Destroy();
} }
void show_profiler_window(wxWindow* parent); #if USE_SCRIPT_PROFILING
void SetWindow::onFileProfiler(wxCommandEvent&) { void show_profiler_window(wxWindow* parent);
show_profiler_window(this); void SetWindow::onFileProfiler(wxCommandEvent&) {
} show_profiler_window(this);
}
#endif
void SetWindow::onFilePrint(wxCommandEvent&) { void SetWindow::onFilePrint(wxCommandEvent&) {
ExportCardSelectionChoices choices; ExportCardSelectionChoices choices;
...@@ -752,7 +754,9 @@ BEGIN_EVENT_TABLE(SetWindow, wxFrame) ...@@ -752,7 +754,9 @@ BEGIN_EVENT_TABLE(SetWindow, wxFrame)
EVT_MENU (ID_FILE_EXPORT_APPR, SetWindow::onFileExportApprentice) EVT_MENU (ID_FILE_EXPORT_APPR, SetWindow::onFileExportApprentice)
EVT_MENU (ID_FILE_EXPORT_MWS, SetWindow::onFileExportMWS) EVT_MENU (ID_FILE_EXPORT_MWS, SetWindow::onFileExportMWS)
EVT_MENU (ID_FILE_CHECK_UPDATES, SetWindow::onFileCheckUpdates) EVT_MENU (ID_FILE_CHECK_UPDATES, SetWindow::onFileCheckUpdates)
#if USE_SCRIPT_PROFILING
EVT_MENU (ID_FILE_PROFILER, SetWindow::onFileProfiler) EVT_MENU (ID_FILE_PROFILER, SetWindow::onFileProfiler)
#endif
// EVT_MENU (ID_FILE_INSPECT, SetWindow::onFileInspect) // EVT_MENU (ID_FILE_INSPECT, SetWindow::onFileInspect)
EVT_MENU (ID_FILE_PRINT, SetWindow::onFilePrint) EVT_MENU (ID_FILE_PRINT, SetWindow::onFilePrint)
EVT_MENU (ID_FILE_PRINT_PREVIEW, SetWindow::onFilePrintPreview) EVT_MENU (ID_FILE_PRINT_PREVIEW, SetWindow::onFilePrintPreview)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment