From bf22d0540e5a9b526625016018f725d4e8e293f4 Mon Sep 17 00:00:00 2001 From: Nicu Reut Date: Mon, 7 Dec 2020 23:23:50 +0100 Subject: [PATCH] Save last used input to the config file when loading noisetorch --- ui.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ui.go b/ui.go index 65e3689..dcda581 100644 --- a/ui.go +++ b/ui.go @@ -202,6 +202,8 @@ func updatefn(ctx *ntcontext, w *nucular.Window) { time.Sleep(time.Millisecond * 500) } } + ctx.config.LastUsedInput = &inp.ID + go writeConfig(ctx.config) ctx.loadingScreen = false (*ctx.masterWindow).Changed() }()