From eb1e2ee89889bb1962b93af0e29d0495d7a618de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sat, 30 Jan 2021 23:43:09 +0100 Subject: layout: Fix layout switching bug --- tt.layout.ahk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tt.layout.ahk b/tt.layout.ahk index 5b15342..a9f8759 100644 --- a/tt.layout.ahk +++ b/tt.layout.ahk @@ -14,6 +14,8 @@ else if (v = current) new := activelayouts[k+1] } + if (new = "") + new := activelayouts[1] } DllCall("SendMessage", "UInt", WinActive("A"), "UInt", 80, "UInt", 1, "UInt", new) Sleep, 100 -- cgit v1.2.3