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;
|
||||
switch (S.get().whenSelectText) {
|
||||
case 'showButton':
|
||||
if(selectionWord.length==0) return;
|
||||
popupButton(e);
|
||||
break;
|
||||
case 'showPanel':
|
||||
translate(selectionWord, 'auto', S.get().targetLang);
|
||||
if(selectionWord.length==0) return;
|
||||
showPanel(e);
|
||||
break;
|
||||
case 'dontShowButton':
|
||||
|
|
Loading…
Reference in a new issue