From 02bc587302ff8bebc0a2e7290957e06c59ac95bc Mon Sep 17 00:00:00 2001 From: javalikescript Date: Sat, 29 Jan 2022 17:30:49 +0100 Subject: [PATCH] Always set window owner --- fcut.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/fcut.lua b/fcut.lua index 6d88e2c..1211ca2 100644 --- a/fcut.lua +++ b/fcut.lua @@ -391,12 +391,9 @@ else })) if config.webview.native then serialWorker = require('jls.util.SerialWorker'):new() - serialWorker:call(function() - local win32 = require('win32') - win32.SetWindowOwner(); - _G.win32 = win32 - end) local function getFileName(message) + local win32 = require('win32') + win32.SetWindowOwner() if message then if message.save then return {win32.GetSaveFileName()}