-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
channelmixerrgb: remember last selected notebook page #6793
Conversation
src/iop/channelmixerrgb.c
Outdated
@@ -1915,6 +1915,9 @@ void gui_init(struct dt_iop_module_t *self) | |||
NOTEBOOK_PAGE(grey, grey, N_("grey"), N_("grey"), FALSE) | |||
|
|||
self->widget = GTK_WIDGET(g->notebook); | |||
int active_page = dt_conf_get_int("plugins/darkroom/channelmixerrgb/gui_page"); |
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.
const
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.
ok. I copied this from tone equalizer, so have added a const there as well.
BTW, I'm not sure this is good. When I use this module (or previous channel mixer BTW), when I change the R channel I do not expect to restart here for next edit. So not really convince this is helpful. |
I don't want to start in the CAT tab either, because I mostly use it for monochrome conversion |
make it a preference within the module |
I think this is in the same vein as recent toneeq change, where last used tab is remembered. It's imo good practice for multi-tab modules, as it gives good workflow by default for those that are tab-independent (like toneeq and channelmixer). I wouldn't recommend remembering tabs on filmic though ;) |
Ok, I let's go with that and we"ll see how people react. Note that I'm not for a preference as we already have many, or if a preference is to be added it should be applied to ALL modules. |
Using channel mixer for making monochrome images or for manually adjusting primaries are not common use cases, whereas CAT tab is relevent for all images. That's why I think it should be first and selected by default. |
Back to that discussion about the assumptions that the module is making. It should either be a no-op when activated or it should somehow set the white balance module to D65 (or I'm misunderstanding this whole thing still). |
I used channel mixer rgb for the 1st time today. I think it's great. But two things are confusing (at least at the beginning):
|
Not all modules have default settings resulting in no-op, so it's not a rule per se. The question is how particular module is usually used, if returning to no-op settings is something that people want to do often, then it makes sense to change defaults I guess. |
I rather belatedly realise now (while chasing down a crash for @AxelG-DE in midi) that this is somewhat problematic for multi-instance (more conceptually rather than implementation). The last gui_cleanup called will set the saved tab. So if different tabs are active in several instances, the saved state might be unpredictable. Could be (I haven't experimented/verified this) that if you create a 2nd instance, change tabs there, then close it, that tab maybe gets saved. Now if you create another instance again, it would use that saved state, rather than whatever tab the instance you duplicate from is on. Just to mention this and see if anybody has a simple obviously better (and working!) solution. I don't think this is critical; if you always want to use a particular tab that'll end up being the one that gets saved and restored anyway. |
No description provided.