openblock-desktop icon indicating copy to clipboard operation
openblock-desktop copied to clipboard

Editing locked after creating variable name with the same name.

Open Charles-Tang opened this issue 2 years ago • 2 comments

当尝试更改变量名称时发生错误

当我尝试更改变量名称时,我不小心将名称与另一个变量设成一样,软件提示已经有这个变量了,当我重新尝试修改的时候,无法在输入框中输入任何内容,创建变量的窗口也无法输入任何内容

When I try to change the variable name, I accidentally set the name to be the same as another variable, the software prompts that the variable already exists, and when I try to modify it again, I cannot enter anything in the input box, creating a window for the variable also can't enter anything

Charles-Tang avatar Nov 20 '21 00:11 Charles-Tang

确实有这个问题,这是由于electron在win10后系统的一个bug导致,出现这个问题后,你可以将光标移动到软件外部点击聚焦其他内容,然后在回到软件中重新输入即可,不过同时我们会修复这个问题的。

zhengyangliu avatar Jan 31 '22 04:01 zhengyangliu

These problems all stem from the same bug: https://github.com/electron/electron/issues/20400#issuecomment-539586029. Under the windows system, the render thread inside the electron cannot use the altert popup window. We've fixed some of this before: https://github.com/openblockcc/openblock-desktop/commit/dcf119b4c27c8f85e810d3a13882af40570898c3, but didn't notice that alerts are also used in blocks, Now we need to put the alert from blocks to vm->gui->electron to fix this bug.

zhengyangliu avatar Mar 08 '22 05:03 zhengyangliu