preparing settings to be used more
This commit is contained in:
parent
bbb9f910d0
commit
ad80604293
2 changed files with 12 additions and 1 deletions
|
@ -84,7 +84,15 @@ Kirigami.OverlaySheet {
|
||||||
Kirigami.FormData.label: i18nc("@label:checkbox", "Debug")
|
Kirigami.FormData.label: i18nc("@label:checkbox", "Debug")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
RSettings.debug = checked;
|
RSettings.debug = checked;
|
||||||
console.log(RSettings.debug);
|
Utils.dbg("Debugging: " + RSettings.debug);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Controls.CheckBox {
|
||||||
|
Kirigami.FormData.label: i18nc("@label:checkbox", "Run Server")
|
||||||
|
onClicked: {
|
||||||
|
RSettings.runServer = checked;
|
||||||
|
Utils.dbg("Server running: " + RSettings.runServer);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,7 @@ mod settings {
|
||||||
#[qproperty(QUrl, last_save_file)]
|
#[qproperty(QUrl, last_save_file)]
|
||||||
#[qproperty(QUrl, loaded_file)]
|
#[qproperty(QUrl, loaded_file)]
|
||||||
#[qproperty(bool, debug)]
|
#[qproperty(bool, debug)]
|
||||||
|
#[qproperty(bool, run_server)]
|
||||||
type Settings = super::SettingsRust;
|
type Settings = super::SettingsRust;
|
||||||
|
|
||||||
#[qinvokable]
|
#[qinvokable]
|
||||||
|
@ -42,6 +43,7 @@ pub struct SettingsRust {
|
||||||
last_save_file: QUrl,
|
last_save_file: QUrl,
|
||||||
loaded_file: QUrl,
|
loaded_file: QUrl,
|
||||||
debug: bool,
|
debug: bool,
|
||||||
|
run_server: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for SettingsRust {
|
impl Default for SettingsRust {
|
||||||
|
@ -53,6 +55,7 @@ impl Default for SettingsRust {
|
||||||
last_save_file: QUrl::from(""),
|
last_save_file: QUrl::from(""),
|
||||||
loaded_file: QUrl::from(""),
|
loaded_file: QUrl::from(""),
|
||||||
debug: false,
|
debug: false,
|
||||||
|
run_server: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue