onDataChanged: some cases deactivate can not be called or persistent model index is invalidated (this should not happen in this case or it's a bug) which result in effect to stay active
BUG: 395519
davidedmundson |
Plasma |
onDataChanged: some cases deactivate can not be called or persistent model index is invalidated (this should not happen in this case or it's a bug) which result in effect to stay active
BUG: 395519
Lint Skipped |
Unit Tests Skipped |
I'm happy to admit there's a bug there, but just removing the code isn't fixing it.
Now you're restoring windows as soon as any property, such as a download progressing in any window changes.
On previous version stackingOrderChanged will not restore windows state, it just stops the effect. So onActiveTaskChanged to replace onDataChanged?
applets/minimizeall/package/contents/ui/main.qml | ||
---|---|---|
98 | Oh! The old c++ plugin had deactivate(bool) where the parameter indicated whether we restored the minimised windows or not. I had completely misread the old behaviour. onVirtualDesktopChanged: deactivate() onActivityChanged: deactivate() should be doing what you're doing here not calling deactivate(). Can you change those, then ++++ to that specific change. as for onDataChanged vs onActiveTaskChanged The reason I did this was if you click minimise all -> then click on the desktop we deactivate, something I don't think we want. I don't fully understand what you're saying is wrong with the onDataChanged. |
onVirtualDesktopChanged and onActivityChanged it looks good to deactivate effect with restoring windows state. Because you can miss or forgive that you activate it, we definitely NOT want to deactivate effect when you click desktop :) I think now it's looking good.
Because you can miss or forgive that you activate it, we definitely NOT want to deactivate effect when you click desktop :)
in this patch it DOES set active = false when you click on the desktop
That's why I used the onDataChanged
applets/minimizeall/package/contents/ui/main.qml | ||
---|---|---|
98 | this is deactivating the minimise all whenever the IsWindow role of any window changes? That seems wrong. Though between the two patches we might have a good idea. We could use onActiveTaskChanged if we then check that the activeTask isWindow is true. |
Sorry about taking over like that, just wanted to make sure your change got into 5.13.1