Skip to content

Commit

Permalink
更新版本为 5.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
chao committed Jul 8, 2023
1 parent 3a5bcd5 commit 0529cc1
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 13 deletions.
16 changes: 10 additions & 6 deletions Jvedio-WPF/Jvedio/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
using System;
using System.Threading;
using System.Windows;
#if DEBUG
#else
using System.Diagnostics;
using System.Windows.Threading;
using System.Threading.Tasks;
using System.Runtime.InteropServices;
#endif

namespace Jvedio
{
Expand Down Expand Up @@ -38,18 +45,15 @@ protected override void OnStartup(StartupEventArgs e)
#else
bool createNew;
ProgramStarted = new EventWaitHandle(false, EventResetMode.AutoReset, "Jvedio", out createNew);
if (!createNew)
{
if (!createNew) {
//new MsgBox($"Jvedio {LangManager.GetValueByKey("Running")}").ShowDialog();
//App.Current.Shutdown();
//Environment.Exit(0);

var current = Process.GetCurrentProcess();

foreach (var process in Process.GetProcessesByName(current.ProcessName))
{
if (process.Id != current.Id)
{
foreach (var process in Process.GetProcessesByName(current.ProcessName)) {
if (process.Id != current.Id) {
IntPtr hWnd = IntPtr.Zero;
hWnd = process.MainWindowHandle;

Expand Down
2 changes: 1 addition & 1 deletion Jvedio-WPF/Jvedio/Core/Config/ConfigManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Jvedio
{
public static class ConfigManager
{
public const string RELEASE_DATE = "2023-06-05";
public const string RELEASE_DATE = "2023-07-08";

public static bool Loaded = false;

Expand Down
4 changes: 2 additions & 2 deletions Jvedio-WPF/Jvedio/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@
// 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
// 通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.3.0.0")]
[assembly: AssemblyFileVersion("5.3.0.0")]
[assembly: AssemblyVersion("5.3.1.0")]
[assembly: AssemblyFileVersion("5.3.1.0")]
3 changes: 2 additions & 1 deletion Jvedio-WPF/Jvedio/WindowStartUp.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,8 @@ private void ShowAbout(object sender, RoutedEventArgs e)
//about.ShowDialog();
Dialog_About about = new Dialog_About();
string local = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
local = local.Substring(0, local.Length - ".0.0".Length);
if (local.EndsWith(".0.0"))
local = local.Substring(0, local.Length - ".0.0".Length);
about.AppName = "Jvedio";
about.AppSubName = "本地视频管理软件";
about.Version = local;
Expand Down
2 changes: 1 addition & 1 deletion Jvedio-WPF/Jvedio/Windows/Window_Main.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,7 @@
FocusVisualStyle="{x:Null}"
ItemContainerStyle="{StaticResource FlatTabItem}"
SelectedIndex="{Binding TabSelectedIndex, FallbackValue=0}"
Style="{StaticResource FlatTabControl}">
Style="{StaticResource HeaderHideTabControlStyle}">
<TabItem Header="{DynamicResource Movie}">
<!-- 影片 -->
<Grid HorizontalAlignment="Stretch">
Expand Down
8 changes: 6 additions & 2 deletions Jvedio-WPF/Jvedio/Windows/Window_Main.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ private async void CheckUpgrade()
string ReleaseDate = result.ReleaseDate;
if (!string.IsNullOrEmpty(remote)) {
string local = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
local = local.Substring(0, local.Length - ".0.0".Length);
//local = local.Substring(0, local.Length - ".0.0".Length);
if (local.CompareTo(remote) < 0) {
bool opened = (bool)new MsgBox(
$"存在新版本\n版本:{remote}\n日期:{ReleaseDate}").ShowDialog();
Expand Down Expand Up @@ -4296,7 +4296,8 @@ private void ShowAbout(object sender, RoutedEventArgs e)
{
Dialog_About about = new Dialog_About();
string local = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
local = local.Substring(0, local.Length - ".0.0".Length);
if (local.EndsWith(".0.0"))
local = local.Substring(0, local.Length - ".0.0".Length);
about.AppName = "Jvedio";
about.AppSubName = "本地视频管理软件";
about.Version = local;
Expand Down Expand Up @@ -4449,6 +4450,9 @@ private void Grid_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs

private void OpenServer(object sender, RoutedEventArgs e)
{
MessageNotify.Info("开发中");
return;

if (window_Server != null)
window_Server.Close();
window_Server = new Window_Server();
Expand Down

0 comments on commit 0529cc1

Please sign in to comment.