mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
add nolint.
This commit is contained in:
parent
0ead4bc8fd
commit
794728f4a8
@ -94,6 +94,7 @@ func (h *RoomHandler) screenShotGet(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
w.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate")
|
||||
w.Header().Set("Content-Type", "image/jpeg")
|
||||
//nolint
|
||||
w.Write(out.Bytes())
|
||||
}
|
||||
|
||||
@ -112,5 +113,6 @@ func (h *RoomHandler) screenCastGet(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
w.Header().Set("Cache-Control", "no-cache, no-store, must-revalidate")
|
||||
w.Header().Set("Content-Type", "image/jpeg")
|
||||
//nolint
|
||||
w.Write(bytes)
|
||||
}
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user