Skip to content

Commit

Permalink
no auto test
Browse files Browse the repository at this point in the history
  • Loading branch information
4sval committed Aug 7, 2022
1 parent 73151ea commit 4a93276
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion FModel/Views/Resources/Controls/EndpointEditor.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
xmlns:adonisUi="clr-namespace:AdonisUI;assembly=AdonisUI"
xmlns:adonisControls="clr-namespace:AdonisUI.Controls;assembly=AdonisUI"
xmlns:adonisExtensions="clr-namespace:AdonisUI.Extensions;assembly=AdonisUI"
WindowStartupLocation="CenterScreen" IconVisibility="Collapsed" ResizeMode="NoResize" Closing="OnClosing"
WindowStartupLocation="CenterScreen" IconVisibility="Collapsed" ResizeMode="NoResize"
Width="{Binding Source={x:Static SystemParameters.MaximizedPrimaryScreenWidth}, Converter={converters:RatioConverter}, ConverterParameter='0.50'}"
Height="{Binding Source={x:Static SystemParameters.MaximizedPrimaryScreenWidth}, Converter={converters:RatioConverter}, ConverterParameter='0.35'}">
<adonisControls:AdonisWindow.Resources>
Expand Down
10 changes: 2 additions & 8 deletions FModel/Views/Resources/Controls/EndpointEditor.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.ComponentModel;
using System.Diagnostics;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
using FModel.Extensions;
Expand Down Expand Up @@ -53,8 +52,8 @@ public EndpointEditor(FEndpoint endpoint, string title, EEndpointType type)

private void OnClick(object sender, RoutedEventArgs e)
{
DialogResult = _isTested && DataContext is FEndpoint { IsValid: true };
Close();
DialogResult = DataContext is FEndpoint { IsValid: true };
}

private async void OnSend(object sender, RoutedEventArgs e)
Expand Down Expand Up @@ -96,10 +95,5 @@ private void OnEvaluator(object sender, RoutedEventArgs e)
{
Process.Start(new ProcessStartInfo { FileName = "https://jsonpath.herokuapp.com/", UseShellExecute = true });
}

private void OnClosing(object sender, CancelEventArgs e)
{
if (!_isTested) OnTest(null, null);
}
}

0 comments on commit 4a93276

Please sign in to comment.