From 19aac654fac5e9e77db2c334d1a92cdd9ecae471 Mon Sep 17 00:00:00 2001 From: "erik.araojo" Date: Fri, 10 May 2024 09:18:03 +0800 Subject: [PATCH] bump to v2.2 --- source/Tefin/Tefin.csproj | 8 ++++---- source/Tefin/ViewModels/MainWindowViewModel.cs | 3 +++ .../Tefin/ViewModels/Tabs/TreeRequestEditorViewModel.cs | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/source/Tefin/Tefin.csproj b/source/Tefin/Tefin.csproj index 8f00753..9fbb502 100644 --- a/source/Tefin/Tefin.csproj +++ b/source/Tefin/Tefin.csproj @@ -7,17 +7,17 @@ true Assets\fire.ico FintX - 2.1.0 - 2.1.0 + 2.2.0 + 2.2.0 net8.0 FintX FintX com.erik.FintX - 2.1.0 + 2.2.0 APPL - FintX 2.0+ + FintX 2.2+ com.erik.FintX FintX Resources/fire.icns diff --git a/source/Tefin/ViewModels/MainWindowViewModel.cs b/source/Tefin/ViewModels/MainWindowViewModel.cs index 2702363..378ae1d 100644 --- a/source/Tefin/ViewModels/MainWindowViewModel.cs +++ b/source/Tefin/ViewModels/MainWindowViewModel.cs @@ -67,6 +67,9 @@ public void Init() { private void OnSponsor() => Core.Utils.openBrowser("https://github.com/sponsors/namigop"); private void StartAutoSave() { + #if DEBUG + return; + #endif AutoSave.ClientParam[] Get() { var methodTabs = this.TabHost.Items .Where(t => t.CanAutoSave) diff --git a/source/Tefin/ViewModels/Tabs/TreeRequestEditorViewModel.cs b/source/Tefin/ViewModels/Tabs/TreeRequestEditorViewModel.cs index caff690..3b77fa3 100644 --- a/source/Tefin/ViewModels/Tabs/TreeRequestEditorViewModel.cs +++ b/source/Tefin/ViewModels/Tabs/TreeRequestEditorViewModel.cs @@ -68,7 +68,7 @@ public MethodInfo MethodInfo { this.CtsReq?.Dispose(); this.CtsReq = null; this.CtsReq = new CancellationTokenSource(); - mParams[mParams.Length - 1] = this.CtsReq.Token; + mParams[^1] = this.CtsReq.Token; } return (mParams.Any(), mParams);