From d63ed0e7379e8b1508c4a6ce30c999dabfca2171 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Wed, 30 Jun 2021 14:58:05 +0800 Subject: [PATCH] [bugfix] xodo pdf pos does not match --- win/win.ahk | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/win/win.ahk b/win/win.ahk index 81848ae..e8a3ec4 100644 --- a/win/win.ahk +++ b/win/win.ahk @@ -209,7 +209,6 @@ LoadArrangement() { try { FileRead, temp, %ARRANGEMENT_PATH% ARRANGEMENT := JSON.Load(temp) - ShowObject(ARRANGEMENT) } catch { ARRANGEMENT := Object() } @@ -239,6 +238,7 @@ WatchNewWindow() { classPath := GetActiveWindowClassPath() if ARRANGEMENT.HasKey(classPath) { pos := ARRANGEMENT[classPath] + WinRestore, A WinMove, A,, pos[1], pos[2], pos[3], pos[4] } } @@ -267,8 +267,7 @@ GetSelectedText() { } ShowDebug() { - global ARRANGEMENT - ShowObject(ARRANGEMENT) + ShowActiveWinGeometry() } ShowObject(obj) {