Project

General

Profile

unexist.dev

Assorted tidbits and projects

Bug #320

Problem with Subtlext::View.current not updating; :client_kill doesn't track dialog boxes

Added by Alessa Norman about 6 years ago.

Status:
Unconfirmed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
12/18/2018
Due date:
% Done:

0%

Estimated time:

Description

Per attached file, I'm trying to track how many clients are active on the current view so I can show that number on my panel. When I switch to an empty view, the View.current variable doesn't update. So View.current will return the last populated client until I switch to another populated client.

If I'm in a view with clients and I close out all the clients, it tracks that correctly and View.clients.length shows a 0 as expected.

Also, if I open a dialog box as I just did (from Firefox) to attach numwin.rb to the ticket, View.current.clients.length is incremented, but does not show as decremented until I switch to a different view and back, so probably some dialog boxes are seen by on :client_create but not by on :client_kill.

Let me know if you want me to split these up into subtopics or stick them somewhere else.

numwin.rb (586 Bytes) numwin.rb simple sublet Alessa Norman, 12/18/2018 02:26 PM

Also available in: Atom PDF