Skip to content

Portable Tool for an Ideal Windows Setup

v 5.0.7 -fixed timespan

Greedeks46cb928e8166
diff --git a/.Source/GTweak/Assets/UserControl/Comment.xaml.cs b/.Source/GTweak/Assets/UserControl/Comment.xaml.cs
index 740030a3..807d4f86 100644
--- a/.Source/GTweak/Assets/UserControl/Comment.xaml.cs
+++ b/.Source/GTweak/Assets/UserControl/Comment.xaml.cs
@@ -15,7 +15,8 @@ namespace GTweak.Assets.UserControl
internal string Text
{
get { return FunctionDescription.Text; }
- set { new TypewriterAnimation(value, FunctionDescription, value.Length < 200 ? TimeSpan.FromMilliseconds(400) : TimeSpan.FromMilliseconds(550)); }
+ set { new TypewriterAnimation(value, FunctionDescription,
+ value.Length <= 50 ? TimeSpan.FromMilliseconds(200) : value.Length <= 200 ? TimeSpan.FromMilliseconds(400) : TimeSpan.FromMilliseconds(550)); }
}
public static readonly DependencyProperty DefaultTextProperty =
@@ -25,7 +26,7 @@ namespace GTweak.Assets.UserControl
{
InitializeComponent();
- App.LanguageChanged += delegate { new TypewriterAnimation((string)FindResource("defaultDescription"), FunctionDescription, TimeSpan.FromMilliseconds(0)); };
+ App.LanguageChanged += delegate { new TypewriterAnimation(DefaultText, FunctionDescription, TimeSpan.FromMilliseconds(0)); };
}
private void Comment_Loaded(object sender, RoutedEventArgs e) => new TypewriterAnimation(DefaultText, FunctionDescription, TimeSpan.FromMilliseconds(300));
diff --git a/.Source/GTweak/Properties/AssemblyInfo.tt b/.Source/GTweak/Properties/AssemblyInfo.tt
index 0841edac..ff1a1f61 100644
--- a/.Source/GTweak/Properties/AssemblyInfo.tt
+++ b/.Source/GTweak/Properties/AssemblyInfo.tt
@@ -9,7 +9,7 @@ using System.Windows;
[assembly: AssemblyProduct("GTweak")]
[assembly: AssemblyCopyright("Copyright � Greedeks 2024")]
[assembly: AssemblyTrademark("Greedeks")]
-[assembly: AssemblyInformationalVersion("Build: 5.0.6")]
+[assembly: AssemblyInformationalVersion("Build: 5.0.7")]
[assembly: AssemblyVersion("5.<#= GenerateVersion() #>")]
[assembly: AssemblyFileVersion("5.<#= GenerateVersion() #>")]