-
Notifications
You must be signed in to change notification settings - Fork 0
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
Delete and add logic divided, RemoveNode fixed, cmd buffer is newly updated #2
Conversation
I removed the tree.py since it seems to me that it would only make sense to have the methods GetModel and FillModel here. Something like this:
But please, feel free to set up this file again if you think it could be useful. Maybe in future it would be nice to have separate logic.. I do not have a strong opinion. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure the signals as they are now is the best option. E.g. why the actual removing/adding to history file is done in gui_core/goutput.py? I am thinking the actual adding/removing should be done wherever it is requested, so adding in core/gconsole.py and deleting in browser.py. The signals then should be informing the action has already happened, e.g. cmdPrompt needs to updated, tree needs to be updated. Right now the signals are both requesting change in history file and informing the change is happening. I believe this would clarify it, but maybe I missed something.
Not sure either, it is somewhat confusing that the class is named ...Tree, but in fact is more of a manager of the TreeModel. So maybe in the future the class could be actually inheriting from the TreeModel. In datacatalog the class DataCatalogTree inherits from TreeView, so we are overall inconsistent, so perhaps we should later restructure this in a similar way, at least for consistency. |
You are right, I will change that. |
1e11417
to
c670734
Compare
c670734
to
ea8f3ea
Compare
@tmszi, @petrasovaa I had problems with updating from upstream/main. I rebased on upstream/main, solved conflicts, and tested the PR (to this moment everything is alright), but when I pushed I took with me many unrelated commits from upstream/main and was unable to get rid of them. Normally, I do the following to fix it but it did not work (After this procedure I still had the unrelated commits as part of the PR):
So to deal with the problem of unrelated commits ASAP I finally decided to completely reset this PR and create another new PR OSGeo#3342 updated on upstream/main in GRASS/main. Sorry for that confusing step, I believe there are better solutions but this was the only solution that came into my mind to deal with the problem as soon as possible.. |
Update to OSGeo#3310