Skip to content

Commit 08c5e5a

Browse files
committed
Fix suspend point menu
1 parent b95907a commit 08c5e5a

File tree

3 files changed

+19
-14
lines changed

3 files changed

+19
-14
lines changed

qml/Main3.qml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,18 +34,18 @@ ApplicationWindow {
3434
GeneralSettings.mainWindowY = y
3535
}
3636

37-
onActiveFocusItemChanged: {
38-
console.log("Active focus item changed to: " + window.activeFocusItem)
39-
let item = window.activeFocusItem
40-
let level = 0
41-
while (item) {
42-
let spaces = " ".repeat(level * 2)
43-
44-
console.log(spaces + item)
45-
item = item.parent
46-
level++
47-
}
48-
}
37+
// onActiveFocusItemChanged: {
38+
// console.log("Active focus item changed to: " + window.activeFocusItem)
39+
// let item = window.activeFocusItem
40+
// let level = 0
41+
// while (item) {
42+
// let spaces = " ".repeat(level * 2)
43+
//
44+
// console.log(spaces + item)
45+
// item = item.parent
46+
// level++
47+
// }
48+
// }
4949

5050
visible: true
5151
visibility: GeneralSettings.fullscreen ? Window.FullScreen : Window.Windowed
@@ -452,7 +452,7 @@ ApplicationWindow {
452452
content.goToContent("Not found", lol, {}, StackView.PushTransition)
453453
}
454454
} else if (route === "/quick-menu") {
455-
content.goToContent("Quick Menu", quickMenuPage, {gameSettings: emulatorLoader.item.gameSettings}, StackView.ReplaceTransition)
455+
content.goToContent("Quick Menu", quickMenuPage, {saveSlotNumber: emulatorLoader.item.saveSlotNumber, gameSettings: emulatorLoader.item.gameSettings}, StackView.ReplaceTransition)
456456
} else {
457457
content.goToContent("Not found", lol, {}, StackView.ReplaceTransition)
458458
}

qml/components/QuickMenu.qml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,6 @@ Pane {
187187
SuspendPoints {
188188
id: suspendData
189189
contentHash: emulatorLoader.item ? emulatorLoader.item.contentHash : ""
190-
// contentHash: "8e2c29a1e65111fe2078359e685e7943"
191190
saveSlotNumber: root.saveSlotNumber
192191
}
193192

src/app/emulator_item.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,12 @@ void EmulatorItem::startGame() {
356356
m_platformId = entry->platformId;
357357
m_iconSourceUrl1x1 = entry->icon1x1SourceUrl;
358358

359+
emit contentHashChanged();
360+
emit platformIdChanged();
361+
emit entryIdChanged();
362+
emit saveSlotNumberChanged();
363+
emit gameNameChanged();
364+
359365
// Qt owns the renderer, so it will destroy it.
360366
m_renderer = new EmulatorItemRenderer(
361367
window()->rendererInterface()->graphicsApi(), window(), emuInstance);

0 commit comments

Comments
 (0)