Allow to override visibility tracker
This is in preparation to keep track of external UI plugin UIs
This commit is contained in:
parent
04be971238
commit
73b44532f1
@ -50,8 +50,8 @@ public:
|
||||
void present ();
|
||||
void maybe_show ();
|
||||
|
||||
bool visible() const;
|
||||
bool fully_visible() const;
|
||||
virtual bool visible() const;
|
||||
virtual bool fully_visible() const;
|
||||
const std::string& name() const { return _name; }
|
||||
const std::string& menu_name() const { return _menu_name; }
|
||||
|
||||
|
@ -134,6 +134,8 @@ WindowProxy::toggle()
|
||||
|
||||
if (vistracker) {
|
||||
vistracker->cycle_visibility ();
|
||||
} else if (fully_visible ()) {
|
||||
_window->hide ();
|
||||
} else {
|
||||
_window->present ();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user