From 204e95328a04a83323696eb9463afcd658e22e02 Mon Sep 17 00:00:00 2001 From: ZouJin Date: Tue, 15 Aug 2023 17:08:24 +1000 Subject: [PATCH] Fix #24 --- VPet-Simulator.Windows/WinDesign/TalkBox.xaml.cs | 5 +++-- VPet-Simulator.Windows/WinDesign/winCGPTSetting.xaml | 11 +++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/VPet-Simulator.Windows/WinDesign/TalkBox.xaml.cs b/VPet-Simulator.Windows/WinDesign/TalkBox.xaml.cs index 11e9b3e..2bf7b10 100644 --- a/VPet-Simulator.Windows/WinDesign/TalkBox.xaml.cs +++ b/VPet-Simulator.Windows/WinDesign/TalkBox.xaml.cs @@ -266,11 +266,12 @@ namespace VPet_Simulator.Windows private DateTime lastopeningtime; private void PrograssUsed_ToolTipOpening(object sender, ToolTipEventArgs e) { - if ((DateTime.Now - lastopeningtime).TotalMinutes < 1) + if ((DateTime.Now - lastopeningtime).TotalMinutes < 5) { return; } - TalkChatInfoDisplay(); + lastopeningtime = DateTime.Now; + Task.Run(TalkChatInfoDisplay); } } } diff --git a/VPet-Simulator.Windows/WinDesign/winCGPTSetting.xaml b/VPet-Simulator.Windows/WinDesign/winCGPTSetting.xaml index 779f527..b7c2818 100644 --- a/VPet-Simulator.Windows/WinDesign/winCGPTSetting.xaml +++ b/VPet-Simulator.Windows/WinDesign/winCGPTSetting.xaml @@ -3,10 +3,10 @@ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" - xmlns:local="clr-namespace:VPet_Simulator.Windows" + xmlns:local="clr-namespace:VPet_Simulator.Windows" Topmost="True" xmlns:ll="clr-namespace:LinePutScript.Localization.WPF;assembly=LinePutScript.Localization.WPF" mc:Ignorable="d" - xmlns:pu="clr-namespace:Panuon.WPF.UI;assembly=Panuon.WPF.UI" Title="{ll:Str 'ChatGPT API 设置'}" Width="450" FontSize="16" - Height="Auto" ResizeMode="NoResize" WindowState="Normal" SizeToContent="Height"> + xmlns:pu="clr-namespace:Panuon.WPF.UI;assembly=Panuon.WPF.UI" Title="{ll:Str 'ChatGPT API 设置'}" Width="450" + FontSize="16" Height="Auto" ResizeMode="NoResize" WindowState="Normal" SizeToContent="Height"> @@ -40,9 +40,8 @@ ToolTip="{ll:Str '从 OpenAI 获得的 APIKEY 一般`sk-`开头'}" />