Skip to content
This repository was archived by the owner on Dec 31, 2022. It is now read-only.

Fixed BeginPopupV and BeginPopupModalV having incorrect flags type #142

Merged
merged 1 commit into from
Feb 27, 2021

Conversation

the-goodies
Copy link
Contributor

No description provided.

@JetSetIlly
Copy link
Contributor

You're right. This was my mistake OpenPopup() and OpenPopupOnItemClickV() expects PopupFlags but BeginPopupV() and BeginPopupModalV() expects WindowFlags.

@dertseha maybe the project should have a testing branch so that this sort of issue is caught before general release?

@the-goodies
Copy link
Contributor Author

the-goodies commented Feb 24, 2021

Yeah, easy mistake to make here. I would have caught it before new version release if I would have merged your pull request earlier, since I'm using a lot of BeginPopup with WindowFlags.

@JetSetIlly
Copy link
Contributor

@the-goodies Good work on adding the table API by the way. Have you done anything with the docking branch yet?

@the-goodies
Copy link
Contributor Author

I sort of tried and was able to get docking partially working, but it's not really needed for my use case, so didn't use nor test it properly.
What's needed and would be great is multi-viewports, but it seemed rather difficult to port and time investment trying to understand and do so wasn't worth it. Maybe it would be fine if porting was sufficient, but you also have to make a lot of changes to your backend (as far as I understand), so for a time being I gave up.

@dertseha
Copy link
Member

Thank you for catching this!

@dertseha dertseha merged commit 2d2d232 into inkyblackness:master Feb 27, 2021
@dertseha
Copy link
Member

As for the open question about tests:
I'd be happy if we could extend the Go-demo window in imgui-go-examples, which would help cross-checking API incompatibilities.
I could demand to have PRs only accepted if any extension has the corresponding update there.

I'm not so much a fan of invisible extra branches that one has to become aware of. Granted, the examples repository is somewhat also "away" from this one here, yet it is public in its own right and also a reference implementation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants