Skip to content

Commit

Permalink
update build files
Browse files Browse the repository at this point in the history
  • Loading branch information
marticliment committed Nov 23, 2023
1 parent 0150b10 commit 23c801b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/Package/Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Identity
Name="34D3940F-84D6-47C5-B446-32D6865D8852"
Publisher="CN=Marti Climent, O=Marti Climent, L=Barcelona, C=ES"
Version="0.1.0.0" />
Version="0.1.0.1" />

<Properties>
<DisplayName>WingetUI Widgets (Preview)</DisplayName>
Expand Down
6 changes: 1 addition & 5 deletions src/WidgetProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
16 changes: 1 addition & 15 deletions src/WingetUIConnector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/WingetUIWidgetProvider.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows10.0.22000.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
Expand Down

0 comments on commit 23c801b

Please sign in to comment.