diff options
| author | Teddy Wing | 2019-06-22 21:45:31 +0200 |
|---|---|---|
| committer | Teddy Wing | 2019-06-22 21:45:31 +0200 |
| commit | 53f7c10726f301531bd7eff1cc11eb83fde9b4df (patch) | |
| tree | 2fca321289503912c319ed51bb07bf7e54172282 | |
| parent | 23f29f225ef66a0ee05c6c26f8d44981412ab590 (diff) | |
| download | dothammerspoon-53f7c10726f301531bd7eff1cc11eb83fde9b4df.tar.bz2 | |
gdrive_mouseover_item_open: Ensure Chrome is active
Before doing anything, activate Chrome. Normally it should be active
anyway, but I just tried this with Finder active and no windows open,
not realising that Chrome wasn't the frontmost application.
| -rw-r--r-- | gdrive_mouseover_item.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdrive_mouseover_item.lua b/gdrive_mouseover_item.lua index 8d49482..5e07a8b 100644 --- a/gdrive_mouseover_item.lua +++ b/gdrive_mouseover_item.lua @@ -46,6 +46,8 @@ end function gdrive_mouseover_item_run_and_exit(f) return function() + hs.application.find('com.google.Chrome'):activate() + f() gdrive_mouseover_item_open() |
