mirror of
https://github.com/lxsang/antos-frontend.git
synced 2024-11-19 10:58:20 +01:00
Hide application when use click on active application dock item
All checks were successful
gitea-sync/antos/pipeline/head This commit looks good
All checks were successful
gitea-sync/antos/pipeline/head This commit looks good
This commit is contained in:
parent
89ccbc4b62
commit
c9a3d099c5
@ -293,7 +293,14 @@ namespace OS {
|
|||||||
}
|
}
|
||||||
if(collection.length == 1)
|
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);
|
resolve(collection[0].app);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -104,6 +104,7 @@ namespace OS {
|
|||||||
get blur_overlay(): boolean {
|
get blur_overlay(): boolean {
|
||||||
return this.hasattr("blur-overlay");
|
return this.hasattr("blur-overlay");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Setter: set menu open event handler
|
* Setter: set menu open event handler
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user