mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 13:32:50 -05:00
launcher v2: fix nvidia dgpu race condition
This commit is contained in:
@@ -50,6 +50,13 @@ Rectangle {
|
|||||||
result.push(selectedItem.actions[i]);
|
result.push(selectedItem.actions[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (SessionService.nvidiaCommand) {
|
||||||
|
result.push({
|
||||||
|
name: I18n.tr("Launch on dGPU"),
|
||||||
|
icon: "memory",
|
||||||
|
action: "launch_dgpu"
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -686,14 +686,6 @@ Item {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (SessionService.nvidiaCommand) {
|
|
||||||
actions.push({
|
|
||||||
name: I18n.tr("Launch on dGPU"),
|
|
||||||
icon: "memory",
|
|
||||||
action: "launch_dgpu"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
id: appId,
|
id: appId,
|
||||||
type: "app",
|
type: "app",
|
||||||
|
|||||||
@@ -131,6 +131,16 @@ Popup {
|
|||||||
items.push({
|
items.push({
|
||||||
type: "separator"
|
type: "separator"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (isRegularApp && SessionService.nvidiaCommand) {
|
||||||
|
items.push({
|
||||||
|
type: "item",
|
||||||
|
icon: "memory",
|
||||||
|
text: I18n.tr("Launch on dGPU"),
|
||||||
|
action: launchWithNvidia
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
items.push({
|
items.push({
|
||||||
type: "item",
|
type: "item",
|
||||||
icon: "launch",
|
icon: "launch",
|
||||||
|
|||||||
@@ -42,8 +42,6 @@ DankPopout {
|
|||||||
if (!shouldBeVisible) {
|
if (!shouldBeVisible) {
|
||||||
searchText = "";
|
searchText = "";
|
||||||
expandedPid = "";
|
expandedPid = "";
|
||||||
if (processesView)
|
|
||||||
processesView.reset();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -108,8 +106,11 @@ DankPopout {
|
|||||||
Connections {
|
Connections {
|
||||||
target: processListPopout
|
target: processListPopout
|
||||||
function onShouldBeVisibleChanged() {
|
function onShouldBeVisibleChanged() {
|
||||||
if (processListPopout.shouldBeVisible)
|
if (processListPopout.shouldBeVisible) {
|
||||||
Qt.callLater(() => processListContent.forceActiveFocus());
|
Qt.callLater(() => processListContent.forceActiveFocus());
|
||||||
|
} else {
|
||||||
|
processesView.reset();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user