diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 6575860..8c42c13 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -51,10 +51,10 @@ jobs:
cache-dependency-path: '**/packages.lock.json'
- name: dotnet restore
run: dotnet restore --locked-mode
- - name: dotnet publish
- run: dotnet publish --no-restore --configuration Release --output .\publish
- - name: Upload artifact
- uses: actions/upload-artifact@v4
- with:
- name: publish
- path: .\publish\
+ #- name: dotnet publish
+ # run: dotnet publish --no-restore --configuration Release --output .\publish
+ #- name: Upload artifact
+ # uses: actions/upload-artifact@v4
+ # with:
+ # name: publish
+ # path: .\publish\
diff --git a/.gitignore b/.gitignore
index d378f88..4ea0881 100644
--- a/.gitignore
+++ b/.gitignore
@@ -403,3 +403,5 @@ FodyWeavers.xsd
.idea/**/shelf
publish
+WindowsAppRuntimeInstall-x64.exe
+wintun.dll
diff --git a/App/App.csproj b/App/App.csproj
index 2adf3f7..f6e3c0d 100644
--- a/App/App.csproj
+++ b/App/App.csproj
@@ -10,18 +10,13 @@
Properties\PublishProfiles\win-$(Platform).pubxml
true
enable
- true
+ false
+ None
true
preview
-
-
- Designer
-
-
-
@@ -40,43 +35,12 @@
-
-
-
-
-
-
-
-
- true
-
-
-
-
-
- False
- False
- True
-
diff --git a/App/App.xaml.cs b/App/App.xaml.cs
index cce3650..515d404 100644
--- a/App/App.xaml.cs
+++ b/App/App.xaml.cs
@@ -12,7 +12,6 @@ namespace Coder.Desktop.App;
public partial class App : Application
{
private readonly IServiceProvider _services;
- private readonly bool _handleClosedEvents = true;
public App()
{
@@ -49,12 +48,8 @@ protected override void OnLaunched(LaunchActivatedEventArgs args)
var trayWindow = _services.GetRequiredService();
trayWindow.Closed += (sender, args) =>
{
- // TODO: wire up HandleClosedEvents properly
- if (_handleClosedEvents)
- {
- args.Handled = true;
- trayWindow.AppWindow.Hide();
- }
+ args.Handled = true;
+ trayWindow.AppWindow.Hide();
};
}
}
diff --git a/App/Converters/VpnLifecycleToBoolConverter.cs b/App/Converters/VpnLifecycleToBoolConverter.cs
index 86e66aa..a2e3805 100644
--- a/App/Converters/VpnLifecycleToBoolConverter.cs
+++ b/App/Converters/VpnLifecycleToBoolConverter.cs
@@ -6,6 +6,7 @@
namespace Coder.Desktop.App.Converters;
+[DependencyProperty("Unknown", DefaultValue = false)]
[DependencyProperty("Starting", DefaultValue = false)]
[DependencyProperty("Started", DefaultValue = false)]
[DependencyProperty("Stopping", DefaultValue = false)]
@@ -18,6 +19,7 @@ public object Convert(object value, Type targetType, object parameter, string la
return lifecycle switch
{
+ VpnLifecycle.Unknown => Unknown,
VpnLifecycle.Starting => Starting,
VpnLifecycle.Started => Started,
VpnLifecycle.Stopping => Stopping,
diff --git a/App/Models/RpcModel.cs b/App/Models/RpcModel.cs
index 074578f..dacef38 100644
--- a/App/Models/RpcModel.cs
+++ b/App/Models/RpcModel.cs
@@ -1,4 +1,6 @@
using System.Collections.Generic;
+using System.Linq;
+using Coder.Desktop.Vpn.Proto;
namespace Coder.Desktop.App.Models;
@@ -11,6 +13,7 @@ public enum RpcLifecycle
public enum VpnLifecycle
{
+ Unknown,
Stopped,
Starting,
Started,
@@ -21,9 +24,11 @@ public class RpcModel
{
public RpcLifecycle RpcLifecycle { get; set; } = RpcLifecycle.Disconnected;
- public VpnLifecycle VpnLifecycle { get; set; } = VpnLifecycle.Stopped;
+ public VpnLifecycle VpnLifecycle { get; set; } = VpnLifecycle.Unknown;
- public List