Fixed #6472 that multiple background task popups stacked over each other#6475
Conversation
add concise tips when SaveException happend
add space...
fixed the problem that multiple background task popups stacked over each other. Added a globle PopOver variable to hide existed PopOver(if any).
tobiasdiez
left a comment
There was a problem hiding this comment.
Thanks for the quick fix! I've one idea, can you please try if it also works that way.
| progressViewPopOver.setTitle(Localization.lang("Background Tasks")); | ||
| progressViewPopOver.setArrowLocation(PopOver.ArrowLocation.RIGHT_TOP); | ||
|
|
||
| this.existedProgressViewPopOver.hide(); |
There was a problem hiding this comment.
Another option would be to reuse the existing pop over and only change the content. That is:
if (existedProgressViewPopOver == null) {
existedProgressViewPopOver = new ...
} else {
existedProgressViewPopOver.setContentNode(taskProgressView).
}
This should be a slightly better user experience as there is no flicker of hiding/showing a new pop over.
Then you can also rename the global variable to progressViewPopOver
There was a problem hiding this comment.
In this context, it would be nice if the progress button serves as a toggle: if the pop over is currently shown, and the button is clicked again then the pop over should be hidden.
There was a problem hiding this comment.
Yes, that's great! I have made the change, it works.
|
It would be really nice if you could finish this PR and try the changes so that we can merge this PR soon. |
As tobiasdiez suggests in JabRef#6475
Yes, sorry for the late change. I have made that, please check it again! |
tobiasdiez
left a comment
There was a problem hiding this comment.
LGTM! Thanks for the follow-up.
41531558a8 Fix unsigned newspaper articles throughout Chicago 17 (#6486) 7678212826 Create trames.csl (#6479) 0cae26ac85 Update hochschule-fur-soziale-arbeit-fhnw.csl (#6480) 85c4b693a2 Update to UP Harvard Theology & Religion (#6485) c273aa7e43 Update ieee.csl (#6481) fe67b80e47 Update open-window.csl (#6367) f2229705ef Create iainutuban-tarbiyah.csl (#6361) 1867a56a26 Create business-and-human-rights-journal (#6359) 1371dbdf26 Update iso690-author-date-es.csl (#6477) 6953a43efd Update ieee.csl (#6478) f56d5ef1cc Create czech-journal-of-international-relations.csl (#6453) 678b53f99c Update harvard-stellenbosch-university.csl (#6464) 3074938038 Update ucl-university-college-apa.csl (#6475) 27dab9ea0f Update iso690-author-date-es.csl (#6476) a8aea63d00 Create elsevier-american-chemical-society.csl (#6342) f8f290fa63 Update iso690-author-date-es.csl (#6472) 7fdc621eee Update journal-of-neolithic-archaeology (#6466) 7025568e70 Update offa.csl (#6465) 2d69299b19 Create uni-fribourg-theologie.csl (#6473) 8db531a73e Create travail-et-emploi.csl (#6351) c8b54fc531 Make monash-university-harvard dependent style (#6470) b95f59ff5c Update journal-of-the-marine-biological-association-of-the-united-kingdom.csl (#6456) a12b513119 Update universite-du-quebec-a-montreal.csl (#6463) 048e6641e4 Update zeitschrift-fur-geschichtsdidaktik.csl (#6454) f0d3d7ef15 Update journal-fur-kulturpflanzen-journal-of-cultivated-plants.csl (#6447) 3b814fe048 Update the-accounting-review.csl (#6459) f24befd580 Update survey-of-ophthalmology.csl from ama.csl to its own independent style (#6460) c868ab54f6 Create vancouver-alphabetical.csl (#6461) 782e39cfe1 Update american-institute-of-physics.csl (#6457) a56cf03e3c Fix Chicago Cases & Newspaper sorting (#6458) git-subtree-dir: buildres/csl/csl-styles git-subtree-split: 41531558a873b2533f2d17d8d6484c2408174fce
Fixed #6472
I added a globle PopOver variable to hide existed PopOver(if any).
If a pop over is showing and I clicked on the background tasks button, the showing pop over will hide first, then the new pop over will show. The pop overs won't stack over.
