SceneSwitcher icon indicating copy to clipboard operation
SceneSwitcher copied to clipboard

WIP: Add widget popup actions

Open Destroy666x opened this issue 1 year ago • 3 comments

Also makes DisplayMessage's text selectable.

WIP because it unfortunately doesn't work outside of the Advanced Scene Switcher settings window - it hangs OBS. I learned later that global popups may be (still) impossible to achieve.

So not too sure what to do with it - maybe you'll have a better idea @WarmUpTill. For now submitting as PR to free stash. If not then I guess this could be redone when the'll make this possible.

Destroy666x avatar Oct 20 '23 19:10 Destroy666x

Thanks! I will try to have a look during the weekend.

WIP because it unfortunately doesn't work outside of the Advanced Scene Switcher settings window - it hangs OBS

Did you maybe have a dialog in mind like it is used in the variable action with the "ask for input option"?

grafik If so this code snippet might help.

WarmUpTill avatar Oct 21 '23 06:10 WarmUpTill

Thanks, more or less, so you're saying the non-modal class is made to work anywhere in OBS? If so, I'll take a look later today.

Destroy666x avatar Oct 21 '23 07:10 Destroy666x

I think what might be causing the crashes is that you are trying to open a modal dialog from a non-UI thread. You might have to use obs_queue_task() to do that.

The non-modal dialog might not run into this issue, but to be honest I am mostly guessing here.

WarmUpTill avatar Oct 23 '23 19:10 WarmUpTill