Prevent the display of buttons due to malfunction
This commit is contained in:
parent
1b8f2e89de
commit
2ccc55da0f
|
@ -38,10 +38,12 @@ async function Select(e) {
|
||||||
clickPosition = e;
|
clickPosition = e;
|
||||||
switch (S.get().whenSelectText) {
|
switch (S.get().whenSelectText) {
|
||||||
case 'showButton':
|
case 'showButton':
|
||||||
|
if(selectionWord.length==0) return;
|
||||||
popupButton(e);
|
popupButton(e);
|
||||||
break;
|
break;
|
||||||
case 'showPanel':
|
case 'showPanel':
|
||||||
translate(selectionWord, 'auto', S.get().targetLang);
|
translate(selectionWord, 'auto', S.get().targetLang);
|
||||||
|
if(selectionWord.length==0) return;
|
||||||
showPanel(e);
|
showPanel(e);
|
||||||
break;
|
break;
|
||||||
case 'dontShowButton':
|
case 'dontShowButton':
|
||||||
|
|
Loading…
Reference in a new issue