增加是否隐藏桌面

This commit is contained in:
shefengchun 2023-01-14 11:05:26 +08:00
parent bd8be8954a
commit 97c52eabb2
3 changed files with 15 additions and 3 deletions

View File

@ -96,6 +96,8 @@
<q-separator /> <q-separator />
<q-card-actions align="right"> <q-card-actions align="right">
<span>{{$t('Whether to hide the desktop')}}</span><q-checkbox style="justify-content: flex-start;" v-model="hide_desktop_value" @click="send_hide_desktop" />
<div class="q-space" data-v-39efcd1f=""></div>
<q-btn <q-btn
flat flat
:label="$t('Cancel')" :label="$t('Cancel')"
@ -172,11 +174,15 @@ export default defineComponent({
const showDialog = async () => { const showDialog = async () => {
show_dialog.value = true; show_dialog.value = true;
}; };
const send_hide_desktop=()=>{
set?.SetBlendingOption(0,hide_desktop_value.value?1:0)
}
const config = ref({ col: 0, row: 0 }); const config = ref({ col: 0, row: 0 });
const EnableBlending = ref(false); const EnableBlending = ref(false);
let optionsstr = ref(); let optionsstr = ref();
optionsstr.value = "FusionLocale"; optionsstr.value = "FusionLocale";
const hide_desktop_value=ref(true)
const hide_desktop_id=ref(0)
const options = computed({ const options = computed({
get() { get() {
return optionsstr.value; return optionsstr.value;
@ -224,6 +230,8 @@ export default defineComponent({
let tmp = JSON.parse(res ? res.config : ""); let tmp = JSON.parse(res ? res.config : "");
$store.commit("setEnablefusion", tmp.enable); $store.commit("setEnablefusion", tmp.enable);
$store.commit("setfusion_configuration", res?.config); $store.commit("setfusion_configuration", res?.config);
hide_desktop_id.value=tmp.options[0]
hide_desktop_value.value=tmp.options[1]==0?false:true
}); });
} catch (error) {} } catch (error) {}
}; };
@ -255,6 +263,8 @@ export default defineComponent({
}, 1000); }, 1000);
}); });
return { return {
send_hide_desktop,
hide_desktop_value,
clear, clear,
show_dialog, show_dialog,
options, options,

View File

@ -423,5 +423,6 @@ export default {
"Projector":"Projector", "Projector":"Projector",
"resetall":"reset all", "resetall":"reset all",
"save config":"save config", "save config":"save config",
"Whether to enable integration":"Whether to enable integration" "Whether to enable integration":"Whether to enable integration",
"Whether to hide the desktop":"Whether to hide the desktop"
}; };

View File

@ -692,5 +692,6 @@ export default {
"Projector":"投影机", "Projector":"投影机",
"resetall":"重置所有", "resetall":"重置所有",
"save config":"保存配置", "save config":"保存配置",
"Whether to enable integration":"是否启用融合" "Whether to enable integration":"是否启用融合",
"Whether to hide the desktop":"是否隐藏桌面"
}; };