-
Notifications
You must be signed in to change notification settings - Fork 44
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
Ignore operator adds wrong context #37
Comments
Perhaps its also better to use "standard" user confirmation setup. So a [CANCEL] button left and an [OK] button right. This makes more sense, also this could/should be added to the popup window. One small thing, when a user changes the update frequency but prior has set ignore=true. He will never see any update. Perhaps when the time is changed, the ignore function needs to be reset? Or another option is to post pone, this way the checker will be reset giving the user a new warning with the given time. |
Thanks for taking a look at this, I will certainly review and see if we can make it work more logically.
In terms of the UI, I will leave that up to the individual how to modify. Some panels are naturally much narrower and so side by side buttons might not make sense. As for the pop up and having a cancel button, I fully agree - unfortunately blenders UI design is intentionally restrictive with regards to popups, it is not possible to create a dismissing popup (ie one that closes itself after pressing a button) that doesn’t have the OK button stretched along the bottom.
Thanks for the feedback!
|
Ahhh yes ofcourse, i know that a wm window only has OK at the bottom, didnt thought about that. But to me the okay seemed like OK will install it, the downside is we cant change the text of that OK button. I just noticed when i press the manual button, which seems also a wm dialog, does have a different text at the bottom. Also in the popup, there is a part commented; But when i add; I put them side by side cause in the render panel that can be done, cycles has a col menu of 3 even. |
Can you link me to the current version of your addon (with the updater code as it is)? The install manually sign generally only comes up if an error occurred. I could take a look and see what the issue is. Also out of curiosity, are you on a windows machine? You may need to pre-create the updater subdirectory folder as per here. As for your comment, there are two types of dialogues; one with an OK button at the bottom (with will run the execute function exactly once and dismiss the popup dialogue), and the other type does not put any bottom at the bottom and will re-run the execute function (using the undo stack) whenever you change a property in the draw window (e.g. check/uncheck) - this method does NOT allow you to dismiss a dialogue, the user would have to click away. For the direct download, this seemed okay but generally the preference in my mind is to have an OK button so as to dismiss the dialogue. |
I havent cleaned up my addon yet and there are some parts which still have errors which need to be fixed prior :) I used the basic addon from cgcookie, v1.0.4
Im using OSX and i dont have issues with the structure, i did a quick test and everything was installed properly. Though i need to check if i could exclude files. I noticed that not the release is installed but the main gitHub repo with all folders like wiki, possible images, readme.md and perhaps changelog if there. Is it possible that it installs the release file in stead of the main repo?
I was just clicking the menu which shows when a updated is available this shows update or ignore, website, manual install. When i clicked manual i noticed it could have custom OK button name. But i think i understand it better now with your explanation |
` class GithubEngine(object):
` |
I got it working and will add a fork to repos, shall i do a pull_request or send a link? edit |
Hey, this should now be addressed in master and soon will be part of the v1.0.5 release after some delays you are aware of. Let me know if you see any issues with the recently merged Master branch, and if not I'll close the issue. |
Well i cant really test because of that SSL issues for on my machine :( PS i know i asked it before, but what code is used for a dialog window without an OK button at the bottom? |
Tip, you could always test on a virtual machine (e.g. I often use Ubuntu loaded in VirtualBox to test cross compatibility if I'm away from other machines). There, you can test the working code for linux fine. To get a popup with an OK button: Both are setup the same way inside an invoke method of an operator class. |
v1.0.4
When the Auto-check is in on we see a popup, which is actually already double notification, and then we see the panel with the options. At the bottom it says "X ignore", to my understanding of meaning of ignore. Ignore should ignore the update warning, yet it doesnt. I do see the warning error and that i should check the addon pref. But the menu doesnt go away.
I went on and checked the code. #1284 > addon_updater should be as this:
When i change this to True, the update panel warning will go away. A tleast i think this how it should have been working. See below screengrab, with example how it is standard and after i edit the code quickly.
The text was updated successfully, but these errors were encountered: