add nolint.

This commit is contained in:
Miroslav Šedivý
2021-01-25 17:36:43 +01:00
parent 0ead4bc8fd
commit 794728f4a8
2 changed files with 5 additions and 1 deletions

View File

@ -25,7 +25,7 @@ func (manager *DesktopManagerCtx) HandleFileChooserDialog(uri string) error {
"sleep", FILE_CHOOSER_DIALOG_SLEEP,
).Run()
// TODO: Use native API.
//nolint
exec.Command(
"xdotool",
"search", "--name", FILE_CHOOSER_DIALOG_NAME, "windowfocus",
@ -61,7 +61,9 @@ func (manager *DesktopManagerCtx) CloseFileChooserDialog() {
// because xdotool is failing to send proper Alt+F4
manager.ResetKeys()
//nolint
manager.KeyDown(65513) // Alt
//nolint
manager.KeyDown(65473) // F4
time.Sleep(10 * time.Millisecond)
manager.ResetKeys()