Add global config toggle for built-in manager

This commit is contained in:
David Hrdlička
2025-08-21 15:28:32 +02:00
committed by GitHub
parent c4ac4ad818
commit 979d772ffe
5 changed files with 46 additions and 33 deletions

View File

@@ -584,7 +584,7 @@ main(int argc, char *argv[])
return 0;
}
if (!vmm_enabled)
if (!start_vmm)
#ifdef Q_OS_MACOS
qt_set_sequence_auto_mnemonic(false);
#else
@@ -625,10 +625,10 @@ main(int argc, char *argv[])
return 6;
}
if (!vmm_enabled)
if (!start_vmm)
pc_init_modules();
if (vmm_enabled) {
if (start_vmm) {
// VMManagerMain vmm;
// // Hackish until there is a proper solution
// QApplication::setApplicationName("86Box VM Manager");

View File

@@ -42,7 +42,7 @@ StyleOverride::styleHint(
QStyleHintReturn *returnData) const
{
/* Disable using menu with alt key */
if (!vmm_enabled && (!kbd_req_capture || mouse_capture) && (hint == QStyle::SH_MenuBar_AltKeyNavigation))
if (!start_vmm && (!kbd_req_capture || mouse_capture) && (hint == QStyle::SH_MenuBar_AltKeyNavigation))
return 0;
return QProxyStyle::styleHint(hint, option, widget, returnData);