mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 08:46:39 +00:00
chore(hammerspoon/app_toggle): minor lint warning fix
This commit is contained in:
@@ -131,7 +131,12 @@ function obj:toggle(apps)
|
||||
return
|
||||
end
|
||||
|
||||
if mostRecentApp == hs.application.frontmostApplication() then
|
||||
if not mostRecentApp then
|
||||
mostRecentApp = runningApps[1]
|
||||
end
|
||||
|
||||
local frontMostApp = hs.application.frontmostApplication()
|
||||
if frontMostApp and mostRecentApp == frontMostApp then
|
||||
return mostRecentApp:hide()
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user