Manually reload selectgame
This commit is contained in:
@@ -28,21 +28,12 @@ ColumnLayout {
|
||||
"is_custom": false
|
||||
});
|
||||
}
|
||||
|
||||
select_game.load();
|
||||
}
|
||||
|
||||
ListModel {
|
||||
id: apps
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: WivrnServer
|
||||
function onJsonConfigurationChanged() {
|
||||
select_game.load();
|
||||
}
|
||||
}
|
||||
|
||||
Dialogs.FileDialog {
|
||||
id: app_browse
|
||||
onAccepted: {
|
||||
@@ -74,11 +65,6 @@ ColumnLayout {
|
||||
}
|
||||
|
||||
function load() {
|
||||
if (WivrnServer.jsonConfiguration == "")
|
||||
return;
|
||||
|
||||
Settings.load(WivrnServer);
|
||||
|
||||
var found = false;
|
||||
var custom_idx = -1;
|
||||
for (var i = 0; i < apps.count; i++) {
|
||||
|
||||
@@ -85,6 +85,7 @@ Kirigami.ScrollablePage {
|
||||
}
|
||||
|
||||
SelectGame {
|
||||
id: select_game
|
||||
Kirigami.FormData.label: i18n("Autostart application:")
|
||||
}
|
||||
|
||||
@@ -287,6 +288,7 @@ Kirigami.ScrollablePage {
|
||||
}
|
||||
|
||||
function load() {
|
||||
select_game.load();
|
||||
debug_gui.checked = Settings.debugGui;
|
||||
steamvr_lh.checked = Settings.steamVrLh;
|
||||
hid_forwarding.checked = Settings.hidForwarding;
|
||||
|
||||
Reference in New Issue
Block a user