mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-11-08 14:08:22 +01:00
Hide application when use click on active application dock item
This commit is contained in:
parent
ea160c2ccb
commit
cb9ccb576f
@ -293,7 +293,14 @@ namespace OS {
|
||||
}
|
||||
if(collection.length == 1)
|
||||
{
|
||||
collection[0].app.trigger("focus");
|
||||
if(PM.getActiveApp() == collection[0].app)
|
||||
{
|
||||
collection[0].app.hide();
|
||||
}
|
||||
else
|
||||
{
|
||||
collection[0].app.show();
|
||||
}
|
||||
resolve(collection[0].app);
|
||||
return;
|
||||
}
|
||||
|
@ -104,6 +104,7 @@ namespace OS {
|
||||
get blur_overlay(): boolean {
|
||||
return this.hasattr("blur-overlay");
|
||||
}
|
||||
|
||||
/**
|
||||
* Setter: set menu open event handler
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user