jacklandrin/OnlySwitch

Can't navi to settings page when hide menu bar icon if only switch icon appear at the left

BooboNikita opened this issue · 9 comments

Describe the bug
I turn on the hide menu bar icon switch and where the switch icon appears at the left, then there is a dead lock if the only switch is active and its icon is hidden, so I can't navigate into the setting page and disable the swtich.

To Reproduce
Steps to reproduce the behavior:

  1. Put the hide icon tag on the right of the "only switch" icon;
  2. Go to settings page and turn on "hide menu bar icon" switch
  3. The left icons are hidden including "only switch" icon.

Expected behavior
Never hide "only switch" icon.

Thank you for the feedback. Which OnlySwitch version are you using?

Thank you for the feedback. Which OnlySwitch version are you using?

2.3.7

I can give a workaround to solve the current problem. delete this file /Users/xxxx/Library/Preferences/jacklandrin.OnlySwitch.plist. Actually, there is logic in the code to avoid this situation. It doesn't happen on my side. I think I need more clue.

IMG_2333.MOV

If you delete plist file, it still can't show the icon, please restart your laptop.

I can give a workaround to solve the current problem. delete this file /Users/xxxx/Library/Preferences/jacklandrin.OnlySwitch.plist. Actually, there is logic in the code to avoid this situation. It doesn't happen on my side. I think I need more clue.

IMG_2333.MOV

I recover the hidden icons after I deleted the Userdefaults and some relevant directories in /Library/Containers. Then I can't reproduce the bug as well. 😂

Maybe this problem is caused by cover installation. Some new userdefaults conflict with old settings.

Did you update it from 2.3.6?

Did you update it from 2.3.6?

Maybe from 2.3.4 or 2.3.5

I tried to install back 2.3.5 and uploaded it to 2.3.7. It still can't reproduce the bug. 🤣