mirror of https://github.com/1099438829/macUI.git
修正打开 launchpad 点击app无法关闭launchpad的bug
This commit is contained in:
parent
219111fd80
commit
ad0673f8a8
|
|
@ -353,7 +353,6 @@ window.Macui = {
|
||||||
}, 500)
|
}, 500)
|
||||||
});
|
});
|
||||||
$("#mac .launchpad").click(function () {
|
$("#mac .launchpad").click(function () {
|
||||||
console.log(2222)
|
|
||||||
if ($("#launchpad").hasClass("hidden")) {
|
if ($("#launchpad").hasClass("hidden")) {
|
||||||
Macui.renderLaunchpad();
|
Macui.renderLaunchpad();
|
||||||
Macui.menuClose();
|
Macui.menuClose();
|
||||||
|
|
@ -883,7 +882,9 @@ window.Macui = {
|
||||||
},
|
},
|
||||||
//close Launchpad
|
//close Launchpad
|
||||||
closeLaunchpad: function () {
|
closeLaunchpad: function () {
|
||||||
$("#launchpad").removeClass("show").addClass("hidden").hide();
|
if ($("#launchpad").hasClass("show")){
|
||||||
|
$("#launchpad").removeClass("show").addClass("hidden").hide();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
//消息中心渲染
|
//消息中心渲染
|
||||||
renderCommand: function (todayHtml = null) {
|
renderCommand: function (todayHtml = null) {
|
||||||
|
|
@ -1241,7 +1242,6 @@ window.Macui = {
|
||||||
|
|
||||||
this.menuClose();
|
this.menuClose();
|
||||||
this.commandCenterClose();
|
this.commandCenterClose();
|
||||||
this.closeLaunchpad();
|
|
||||||
return index;
|
return index;
|
||||||
},
|
},
|
||||||
closeAll: function () {
|
closeAll: function () {
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue