🎨 Improve exit

Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-12-09 19:31:44 +08:00
parent a4fb57a360
commit ad48451d51
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 1 additions and 6 deletions

View file

@ -238,18 +238,13 @@ func getWorkspaces(c *gin.Context) {
model.RoleAdministrator,
}) {
ret.Data = []*Workspace{}
logging.LogInfof("non-admin user tried to get workspaces")
return
}
logging.LogInfof("workspace paths [%+v]", workspacePaths)
var workspaces, openedWorkspaces, closedWorkspaces []*Workspace
for _, p := range workspacePaths {
logging.LogInfof("get workspace [%s]", p)
closed := !util.IsWorkspaceLocked(p)
if closed {
logging.LogInfof("workspace [%s] is closed", p)
closedWorkspaces = append(closedWorkspaces, &Workspace{Path: p, Closed: closed})
} else {
openedWorkspaces = append(openedWorkspaces, &Workspace{Path: p, Closed: closed})

View file

@ -750,7 +750,7 @@ func Close(force, setCurrentWorkspace bool, execInstallPkg int) (exitCode int) {
}
util.HttpServing = false
if util.ContainerAndroid == util.Container || util.ContainerIOS == util.Container {
if util.ContainerAndroid == util.Container || util.ContainerIOS == util.Container || util.ContainerHarmony == util.Container {
return
}