From 23c801bdb1470aa02428d9b095bfa1817fea735a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Climent?= Date: Thu, 23 Nov 2023 22:47:49 +0100 Subject: [PATCH] update build files --- src/Package/Package.appxmanifest | 2 +- src/WidgetProvider.cs | 6 +----- src/WingetUIConnector.cs | 16 +--------------- src/WingetUIWidgetProvider.csproj | 2 +- 4 files changed, 4 insertions(+), 22 deletions(-) diff --git a/src/Package/Package.appxmanifest b/src/Package/Package.appxmanifest index 1633b34..8742358 100644 --- a/src/Package/Package.appxmanifest +++ b/src/Package/Package.appxmanifest @@ -13,7 +13,7 @@ + Version="0.1.0.1" /> WingetUI Widgets (Preview) diff --git a/src/WidgetProvider.cs b/src/WidgetProvider.cs index ac732b3..6375766 100644 --- a/src/WidgetProvider.cs +++ b/src/WidgetProvider.cs @@ -69,14 +69,10 @@ private void WingetUI_UpdateCheckFinished(object? sender, UpdatesCheckFinishedEv if (!e.Succeeded) { if (e.ErrorReason == "NO_WINGETUI") - { updateOptions.Data = Templates.GetData_NoWingetUI(); - } else - { updateOptions.Data = Templates.GetData_ErrorOccurred(e.ErrorReason); - WidgetManager.GetDefault().UpdateWidget(updateOptions); - } + WidgetManager.GetDefault().UpdateWidget(updateOptions); } else if (e.Count == 0) diff --git a/src/WingetUIConnector.cs b/src/WingetUIConnector.cs index e3b0a5b..9771a1b 100644 --- a/src/WingetUIConnector.cs +++ b/src/WingetUIConnector.cs @@ -63,20 +63,6 @@ public void ResetCachedUpdates() update_cache_is_valid = false; } - public async Task Connect(GenericWidget widget, UpdatesCheckFinishedEventArgs result) - { - try - { - - - } - catch (Exception ex) - { - Console.WriteLine(ex.ToString()); - result.Succeeded = is_connected_to_host = false; - result.ErrorReason = ex.Message; - } - } public void OnCacheExpire(object? source, ElapsedEventArgs? e) { @@ -147,7 +133,7 @@ async public void GetAvailableUpdates(GenericWidget Widget, bool DeepCheck = fal } catch (Exception ex) { - Console.WriteLine(ex.ToString()); + Console.WriteLine(ex.Message); result.Succeeded = is_connected_to_host = false; result.ErrorReason = "NO_WINGETUI"; if (UpdateCheckFinished != null) diff --git a/src/WingetUIWidgetProvider.csproj b/src/WingetUIWidgetProvider.csproj index d6e2624..9cd5a75 100644 --- a/src/WingetUIWidgetProvider.csproj +++ b/src/WingetUIWidgetProvider.csproj @@ -1,7 +1,7 @@ - Exe + WinExe net6.0-windows10.0.22000.0 enable enable