From 104c9ab16faa5bcea8e41c9e5296f2948f8cfa1b Mon Sep 17 00:00:00 2001 From: Sharrnah <55756126+Sharrnah@users.noreply.github.com> Date: Fri, 5 Jul 2024 19:52:06 +0200 Subject: [PATCH] [TASK] Change link to new plugins repo [BUGFIX] possible exception on loading message --- FyneApp.toml | 2 +- Pages/Advanced/PluginSettings.go | 2 +- Websocket/Messages/loading_state.go | 4 ++++ main.go | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/FyneApp.toml b/FyneApp.toml index a8bde6e..04c0313 100644 --- a/FyneApp.toml +++ b/FyneApp.toml @@ -5,4 +5,4 @@ Website = "https://github.com/Sharrnah/whispering-ui" Name = "Whispering Tiger" ID = "tiger.whispering" Version = "1.3.1" - Build = 3 + Build = 4 diff --git a/Pages/Advanced/PluginSettings.go b/Pages/Advanced/PluginSettings.go index 5396c6d..e267d71 100644 --- a/Pages/Advanced/PluginSettings.go +++ b/Pages/Advanced/PluginSettings.go @@ -434,7 +434,7 @@ func CreatePluginSettingsPage() fyne.CanvasObject { widget.NewLabel("\nNo Plugins found.\n\nDownload Plugins using the button below."), downloadButton, widget.NewLabel("\nOr download Plugins manually from:"), - widget.NewHyperlink("https://github.com/Sharrnah/whispering/blob/main/documentation/plugins.md", parseURL("https://github.com/Sharrnah/whispering/blob/main/documentation/plugins.md")), + widget.NewHyperlink("https://github.com/Sharrnah/whispering-plugins/blob/main/README.md", parseURL("https://github.com/Sharrnah/whispering-plugins/blob/main/README.md")), widget.NewLabel("and place the *.py file in the Plugins folder."), openPluginsFolderButton, ), diff --git a/Websocket/Messages/loading_state.go b/Websocket/Messages/loading_state.go index b9aedbd..c75de9a 100644 --- a/Websocket/Messages/loading_state.go +++ b/Websocket/Messages/loading_state.go @@ -20,6 +20,10 @@ func (res LoadingState) Update() *LoadingState { if LoadingStateDialog == nil { res.InitStateWindow() } + // still no dialog? just return. + if LoadingStateDialog == nil { + return &res + } if len(res.States) == 0 { LoadingStateDialog.Hide() diff --git a/main.go b/main.go index da3d37e..254686c 100644 --- a/main.go +++ b/main.go @@ -85,7 +85,7 @@ func main() { //Utilities.AppVersion = a.Metadata().Version //Utilities.AppBuild = strconv.Itoa(a.Metadata().Build) Utilities.AppVersion = "1.3.1" - Utilities.AppBuild = "2" + Utilities.AppBuild = "3" w := a.NewWindow("Whispering Tiger") w.SetMaster()