This commit is contained in:
zhuzichu 2023-10-10 18:31:22 +08:00
parent 54f52e0886
commit e8a77613bc
3 changed files with 5 additions and 5 deletions

View File

@ -63,10 +63,10 @@ FluScrollablePage{
paddings: 10 paddings: 10
FluCheckBox{ FluCheckBox{
text:"Software Render" text:"Software Render"
checked: SettingsHelper.getReander() === "software" checked: SettingsHelper.getRender() === "software"
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
onClicked: { onClicked: {
if(SettingsHelper.getReander() === "software"){ if(SettingsHelper.getRender() === "software"){
SettingsHelper.saveRender("") SettingsHelper.saveRender("")
}else{ }else{
SettingsHelper.saveRender("software") SettingsHelper.saveRender("software")

View File

@ -66,10 +66,10 @@ FluScrollablePage{
paddings: 10 paddings: 10
FluCheckBox{ FluCheckBox{
text:"Software Render" text:"Software Render"
checked: SettingsHelper.getReander() === "software" checked: SettingsHelper.getRender() === "software"
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
onClicked: { onClicked: {
if(SettingsHelper.getReander() === "software"){ if(SettingsHelper.getRender() === "software"){
SettingsHelper.saveRender("") SettingsHelper.saveRender("")
}else{ }else{
SettingsHelper.saveRender("software") SettingsHelper.saveRender("software")

View File

@ -20,7 +20,7 @@ public:
~SettingsHelper() override; ~SettingsHelper() override;
void init(char *argv[]); void init(char *argv[]);
Q_INVOKABLE void saveRender(const QString& render){save("render",render);} Q_INVOKABLE void saveRender(const QString& render){save("render",render);}
Q_INVOKABLE QString getReander(){return get("render").toString();} Q_INVOKABLE QString getRender(){return get("render").toString();}
Q_INVOKABLE void saveDarkMode(int darkModel){save("darkMode",darkModel);} Q_INVOKABLE void saveDarkMode(int darkModel){save("darkMode",darkModel);}
Q_INVOKABLE int getDarkMode(){return get("darkMode").toInt(0);} Q_INVOKABLE int getDarkMode(){return get("darkMode").toInt(0);}
private: private: