diff --git a/ViewModels/MainWindowViewModel.cs b/ViewModels/MainWindowViewModel.cs index 66781df..8736f07 100644 --- a/ViewModels/MainWindowViewModel.cs +++ b/ViewModels/MainWindowViewModel.cs @@ -127,6 +127,10 @@ public partial class MainWindowViewModel : ViewModelBase CurrentView = new ConfigWindow(); } + public void CancelConfig() { + CurrentView = new HomeWindow(); + } + public async Task StartAgent() { // ws.Options.SetRequestHeader("Authorization", "token " + config.ApiKey); // await ws.ConnectAsync(new Uri("wss://agent.deepgram.com/agent"), System.Threading.CancellationToken.None); diff --git a/Views/AgentWindow.axaml b/Views/AgentWindow.axaml index a8d069c..2067e5c 100644 --- a/Views/AgentWindow.axaml +++ b/Views/AgentWindow.axaml @@ -3,10 +3,10 @@ xmlns:vm="using:app.ViewModels" x:DataType="vm:MainWindowViewModel" x:Class="app.Views.AgentWindow"> - + - + \ No newline at end of file diff --git a/Views/ConfigWindow.axaml b/Views/ConfigWindow.axaml index 205ff26..c3d971b 100644 --- a/Views/ConfigWindow.axaml +++ b/Views/ConfigWindow.axaml @@ -3,7 +3,7 @@ xmlns:vm="using:app.ViewModels" x:DataType="vm:MainWindowViewModel" x:Class="app.Views.ConfigWindow"> - + @@ -18,6 +18,9 @@ - + + + + \ No newline at end of file diff --git a/Views/HomeWindow.axaml b/Views/HomeWindow.axaml index e88e30e..be52bd8 100644 --- a/Views/HomeWindow.axaml +++ b/Views/HomeWindow.axaml @@ -3,11 +3,11 @@ xmlns:vm="using:app.ViewModels" x:DataType="vm:MainWindowViewModel" x:Class="app.Views.HomeWindow"> - + - - - + + + \ No newline at end of file