-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Desktop: add checkmark to menu item, if Dev Tools are on #1949
Desktop: add checkmark to menu item, if Dev Tools are on #1949
Conversation
If one closed the dev tools window, one could think that the Dev Tools are closed. This is not the case. After the next action, the window opens again. This can be confusing, therefore I added a checkmark to the menu item so that it is very clear.
I think it won't work if the tools are opened via the command line? Also the code doesn't build due to this issue: https://eslint.org/docs/rules/no-case-declarations So you'll need to wrap the case in brackets, as I've done for the case statement above yours for example. |
Most likely not, because I haven't looked at it. 2 questions:
Hmm, this is odd. Did you change the linter? I will run the |
It's mentioned in https://joplinapp.org/debugging but I guess it's not a big issue if it's not supported.
No, I think that rule was there since the beginning, but maybe for some reason the pre-commit hook doesn't work for you. |
I can try to make it work. Not sure how complicated it will be.
Hmm, the linter usually runs. Very strange. Maybe I was testing something (remember the issue we had with linter changes not being applied) that interfered with it. No matter, I've re-run |
I just looked into the command line argument again. This is kind of a strange situation. e.g. when you run So the problem is that 2 different instances of the dev tools are opened. One instance for the menu item and a separate instance for the command line option. And they have nothing in common. Update: But this PR was intended to minimize the confusion when using the app in normal production use. Not when debugging or running in dev mode. |
@laurent22 did you see my last comment? |
Yes, I think it's fine as those flags are mostly used only for development, we can merge it once the reducer issue is fixed. |
Which reducer issue? |
If you are talking about the 2 instances of the dev tools this has nothing to do with this PR. This also happens without this PR. Or did you mean the linter problem. I fixed that 3 days ago. |
Sorry it looks like GitHub changed something to the review comments. Instead of submitting them it seems they are in a draft state, so I can see them but you can't. I'm going to submit them now (it's a bit confusing since the submit button is above the comment below an empty text area). |
Looks good now, thanks @tessus! |
) * add checkmark to menu item, if Dev Tools are on If one closed the dev tools window, one could think that the Dev Tools are closed. This is not the case. After the next action, the window opens again. This can be confusing, therefore I added a checkmark to the menu item so that it is very clear. * fix no-case-declarations * fix reducer issue
If one closed the dev tools window, one could think that the Dev Tools are closed.
This is not the case. After the next action, the window opens again. This can be
confusing, therefore I added a checkmark to the menu item so that it is very clear.