mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-28 15:00:21 +00:00
Fix state corruption caused by having 2 separate ComputerModels. Fixes #6
This commit is contained in:
1 parent
32f305347f
commit
be52272e5c
1 file changed
+1
-3
+1
-3
@@ -81,7 +81,7 @@ GridView {
|
||||
return model
|
||||
}
|
||||
|
||||
model: createModel()
|
||||
model: computerModel
|
||||
|
||||
delegate: Item {
|
||||
width: 300; height: 300;
|
||||
@@ -254,8 +254,6 @@ GridView {
|
||||
onYes: {
|
||||
console.log("deleting PC pairing for PC at index: " + pcIndex)
|
||||
computerModel.deleteComputer(pcIndex);
|
||||
// hack to remove the child from the gridview
|
||||
model = createModel()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user