Kodi Community Forum

Full Version: Closing DialogTextViewer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
If I'm not doing something wrong, this dialog can't be closed with DialogClose and PreviousMenu has to be used instead.

Bug or feature?
Close works for me.
Just "Close"? I was trying with "DialogClose()" .
it's Dialog.Close()

note the .
Added dot, but still doesn't work here. Using just "Close" does work.
It's a window?
Dialog.Close(textviewer)

works for sure ;-)
ronie Wrote:Dialog.Close(textviewer)

works for sure ;-)

Yeah, that one works too, but it doesn't look too nice in <includes> Smile

(when making a mouse close button)
Hitcher Wrote:It's a window?

No, it's a dialog on-top of DialogAddonInfo.
Close should work I should think? What is confluence using, or does that not have a button there?
Close definitely works as that's what I use.
jmarshall Wrote:Close should work I should think? What is confluence using, or does that not have a button there?

Yes, using "Close" or "Dialog.Close(textviewer)" does work, so I will use "Close" as more universal one.

Problem is only with "Dialog.Close()" for some reason, and I was using that on "ContextMenu" and "DialogButtonMenu" without a problem.
pecinko Wrote:Problem is only with "Dialog.Close()" for some reason

maybe because that's not valid code?

according to the wiki:
Code:
[b]Dialog.Close(dialog[,force])[/b]
Close a dialog. Set force to true to bypass animations.