From a607250485a667a9abe297c07f37555d09f828a2 Mon Sep 17 00:00:00 2001 From: Christophe Date: Thu, 7 May 2026 17:24:03 +0200 Subject: [PATCH] vkconfig: Fix tray icon on Linux Change-Id: I9f9962a619ba5bfa9ba9068c227a270a09479b4d --- vkconfig_gui/mainwindow.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/vkconfig_gui/mainwindow.cpp b/vkconfig_gui/mainwindow.cpp index 5c238468ca..55399530ff 100644 --- a/vkconfig_gui/mainwindow.cpp +++ b/vkconfig_gui/mainwindow.cpp @@ -125,7 +125,7 @@ void MainWindow::UpdateUI_Status() { menu->addSeparator(); const bool enabled_layers = configurator.layers_override_enabled && configurator.GetExecutableScope() != EXECUTABLE_PER; - QAction *tray_override_layers = new QAction("Override System Vulkan &Layers Configuration:", this); + QAction *tray_override_layers = new QAction("Override System Vulkan &Layers Configuration", this); tray_override_layers->setCheckable(true); tray_override_layers->setChecked(enabled_layers); @@ -151,7 +151,9 @@ void MainWindow::UpdateUI_Status() { QWidgetAction *action = new QWidgetAction(menu); action->setDefaultWidget(widget); action->setEnabled(enabled_layers); - menu->addAction(action); + if (VKC_PLATFORM != PLATFORM_LINUX) { + menu->addAction(action); + } } { @@ -159,7 +161,7 @@ void MainWindow::UpdateUI_Status() { const bool enabled_physical_devices = configurator.driver_override_enabled && configurator.driver_override_mode == DRIVER_MODE_SINGLE; - QAction *tray_override_device = new QAction("Override System Vulkan &Physcial Devices:", this); + QAction *tray_override_device = new QAction("Override System Vulkan &Physcial Devices", this); tray_override_device->setCheckable(true); tray_override_device->setChecked(enabled_physical_devices); @@ -186,7 +188,9 @@ void MainWindow::UpdateUI_Status() { QWidgetAction *action = new QWidgetAction(menu); action->setDefaultWidget(widget); action->setEnabled(enabled_physical_devices); - menu->addAction(action); + if (VKC_PLATFORM != PLATFORM_LINUX) { + menu->addAction(action); + } } {