mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-06-04 23:05:00 -06:00
Qt: Do not show Microprofile option at all if disabled (#2156)
This commit is contained in:
parent
59da460177
commit
b1e537a485
@ -57,7 +57,9 @@
|
|||||||
#include "citra_qt/debugger/graphics/graphics_vertex_shader.h"
|
#include "citra_qt/debugger/graphics/graphics_vertex_shader.h"
|
||||||
#include "citra_qt/debugger/ipc/recorder.h"
|
#include "citra_qt/debugger/ipc/recorder.h"
|
||||||
#include "citra_qt/debugger/lle_service_modules.h"
|
#include "citra_qt/debugger/lle_service_modules.h"
|
||||||
|
#if MICROPROFILE_ENABLED
|
||||||
#include "citra_qt/debugger/profiler.h"
|
#include "citra_qt/debugger/profiler.h"
|
||||||
|
#endif
|
||||||
#include "citra_qt/debugger/registers.h"
|
#include "citra_qt/debugger/registers.h"
|
||||||
#include "citra_qt/debugger/wait_tree.h"
|
#include "citra_qt/debugger/wait_tree.h"
|
||||||
#ifdef USE_DISCORD_PRESENCE
|
#ifdef USE_DISCORD_PRESENCE
|
||||||
@ -712,11 +714,6 @@ void GMainWindow::InitializeDebugWidgets() {
|
|||||||
microProfileDialog = new MicroProfileDialog(this);
|
microProfileDialog = new MicroProfileDialog(this);
|
||||||
microProfileDialog->hide();
|
microProfileDialog->hide();
|
||||||
debug_menu->addAction(microProfileDialog->toggleViewAction());
|
debug_menu->addAction(microProfileDialog->toggleViewAction());
|
||||||
#else
|
|
||||||
auto micro_profile_stub = new QAction(tr("MicroProfile (unavailable)"), this);
|
|
||||||
micro_profile_stub->setEnabled(false);
|
|
||||||
micro_profile_stub->setChecked(false);
|
|
||||||
debug_menu->addAction(micro_profile_stub);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
registersWidget = new RegistersWidget(system, this);
|
registersWidget = new RegistersWidget(system, this);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user