Skip to content

Commit 23c801b

Browse files
committed
update build files
1 parent 0150b10 commit 23c801b

4 files changed

Lines changed: 4 additions & 22 deletions

File tree

src/Package/Package.appxmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<Identity
1414
Name="34D3940F-84D6-47C5-B446-32D6865D8852"
1515
Publisher="CN=Marti Climent, O=Marti Climent, L=Barcelona, C=ES"
16-
Version="0.1.0.0" />
16+
Version="0.1.0.1" />
1717

1818
<Properties>
1919
<DisplayName>WingetUI Widgets (Preview)</DisplayName>

src/WidgetProvider.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,10 @@ private void WingetUI_UpdateCheckFinished(object? sender, UpdatesCheckFinishedEv
6969
if (!e.Succeeded)
7070
{
7171
if (e.ErrorReason == "NO_WINGETUI")
72-
{
7372
updateOptions.Data = Templates.GetData_NoWingetUI();
74-
}
7573
else
76-
{
7774
updateOptions.Data = Templates.GetData_ErrorOccurred(e.ErrorReason);
78-
WidgetManager.GetDefault().UpdateWidget(updateOptions);
79-
}
75+
WidgetManager.GetDefault().UpdateWidget(updateOptions);
8076

8177
}
8278
else if (e.Count == 0)

src/WingetUIConnector.cs

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,20 +63,6 @@ public void ResetCachedUpdates()
6363
update_cache_is_valid = false;
6464
}
6565

66-
public async Task Connect(GenericWidget widget, UpdatesCheckFinishedEventArgs result)
67-
{
68-
try
69-
{
70-
71-
72-
}
73-
catch (Exception ex)
74-
{
75-
Console.WriteLine(ex.ToString());
76-
result.Succeeded = is_connected_to_host = false;
77-
result.ErrorReason = ex.Message;
78-
}
79-
}
8066

8167
public void OnCacheExpire(object? source, ElapsedEventArgs? e)
8268
{
@@ -147,7 +133,7 @@ async public void GetAvailableUpdates(GenericWidget Widget, bool DeepCheck = fal
147133
}
148134
catch (Exception ex)
149135
{
150-
Console.WriteLine(ex.ToString());
136+
Console.WriteLine(ex.Message);
151137
result.Succeeded = is_connected_to_host = false;
152138
result.ErrorReason = "NO_WINGETUI";
153139
if (UpdateCheckFinished != null)

src/WingetUIWidgetProvider.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<OutputType>Exe</OutputType>
4+
<OutputType>WinExe</OutputType>
55
<TargetFramework>net6.0-windows10.0.22000.0</TargetFramework>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<Nullable>enable</Nullable>

0 commit comments

Comments
 (0)