修复通过右键打开轮询设置时不显示信号源名称的BUG

修复PAD下无法替换轮询窗口的BUG
This commit is contained in:
fangxiang 2022-07-27 19:39:47 +08:00
parent 228c814f3d
commit 7ff2e48b84
3 changed files with 9 additions and 12 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "media_player_client", "name": "media_player_client",
"version": "1.4.21", "version": "1.4.22",
"description": "A Quasar Framework app", "description": "A Quasar Framework app",
"productName": "MediaPlayerClient", "productName": "MediaPlayerClient",
"author": "fangxiang <fangxiang@cloudview.work>", "author": "fangxiang <fangxiang@cloudview.work>",

View File

@ -320,6 +320,8 @@ export default defineComponent({
}, },
showDialog(name: string, options: StringKeyValueEntity[] | null) { showDialog(name: string, options: StringKeyValueEntity[] | null) {
show_dialog.value = true; show_dialog.value = true;
signals.value = GlobalData.getInstance().signal_source;
if (options) { if (options) {
datas.value = []; datas.value = [];
if (options.length % 2) { if (options.length % 2) {
@ -345,8 +347,8 @@ export default defineComponent({
_resolve = null; _resolve = null;
} }
_resolve = resolve; _resolve = resolve;
show_dialog.value = true; show_dialog.value = true;
signals.value = GlobalData.getInstance().signal_source;
if (options) { if (options) {
datas.value = []; datas.value = [];

View File

@ -739,17 +739,12 @@ export default defineComponent({
switch (evt.type) { switch (evt.type) {
case "polling": case "polling":
{ {
if (signal_sources.length) {
const signal_source = signal_sources[0];
if (signal_source) {
client?.replaceWindow2( client?.replaceWindow2(
window.window_id, window.window_id,
evt.data.uuid, evt.data.uuid,
true true
); );
} }
}
}
break; break;
case "signal_source": case "signal_source":