Skip to content

Commit a607250

Browse files
vkconfig: Fix tray icon on Linux
Change-Id: I9f9962a619ba5bfa9ba9068c227a270a09479b4d
1 parent 5333f3b commit a607250

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

vkconfig_gui/mainwindow.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ void MainWindow::UpdateUI_Status() {
125125
menu->addSeparator();
126126
const bool enabled_layers = configurator.layers_override_enabled && configurator.GetExecutableScope() != EXECUTABLE_PER;
127127

128-
QAction *tray_override_layers = new QAction("Override System Vulkan &Layers Configuration:", this);
128+
QAction *tray_override_layers = new QAction("Override System Vulkan &Layers Configuration", this);
129129
tray_override_layers->setCheckable(true);
130130
tray_override_layers->setChecked(enabled_layers);
131131

@@ -151,15 +151,17 @@ void MainWindow::UpdateUI_Status() {
151151
QWidgetAction *action = new QWidgetAction(menu);
152152
action->setDefaultWidget(widget);
153153
action->setEnabled(enabled_layers);
154-
menu->addAction(action);
154+
if (VKC_PLATFORM != PLATFORM_LINUX) {
155+
menu->addAction(action);
156+
}
155157
}
156158

157159
{
158160
menu->addSeparator();
159161
const bool enabled_physical_devices =
160162
configurator.driver_override_enabled && configurator.driver_override_mode == DRIVER_MODE_SINGLE;
161163

162-
QAction *tray_override_device = new QAction("Override System Vulkan &Physcial Devices:", this);
164+
QAction *tray_override_device = new QAction("Override System Vulkan &Physcial Devices", this);
163165
tray_override_device->setCheckable(true);
164166
tray_override_device->setChecked(enabled_physical_devices);
165167

@@ -186,7 +188,9 @@ void MainWindow::UpdateUI_Status() {
186188
QWidgetAction *action = new QWidgetAction(menu);
187189
action->setDefaultWidget(widget);
188190
action->setEnabled(enabled_physical_devices);
189-
menu->addAction(action);
191+
if (VKC_PLATFORM != PLATFORM_LINUX) {
192+
menu->addAction(action);
193+
}
190194
}
191195

192196
{

0 commit comments

Comments
 (0)