Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

Unexpected behaviour on closing windows #61

Closed
Seniru opened this issue Dec 27, 2019 · 0 comments
Closed

Unexpected behaviour on closing windows #61

Seniru opened this issue Dec 27, 2019 · 0 comments
Milestone

Comments

@Seniru
Copy link
Owner

Seniru commented Dec 27, 2019

The normal way to close the window is by clicking the red X icon on the top right corner of a window. After clicking it should close the main and the other parts (tabs or naviagations) of the window for the player who clicked it.
The problem is that, the close button closes the main window for all the players except the one that clicked it. More surprisinly, it doesn't close other parts (only for other players)
This behaviour is normal if I've passed nil value as the second argument for ui.removeTextArea method. But it is not

Here is what is look like

function eventTextAreaCallback(id, name, evt)
-- ...
  if evt == "close" then
    ui.removeTextArea(id, name)
    print(name) -- For me it's King_seniru#5890
   -- handling other parts (which works fine)
  end
-- ...
end

Reference

Steps to reproduce

  • Run the script
  • Open a menu (for example tips or jobs) from 2 accounts (main and alt account)
  • Close the menu from the other account
  • Observe changes from the main account
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Project merchant
  
Completed
Development

No branches or pull requests

1 participant