Browse Source

删除开发模式代码 增加更新日志

liufei 3 years ago
parent
commit
00f581a03e

+ 4 - 1
Constant/Constants.cs

@@ -10,7 +10,10 @@ namespace GeekDesk.Constant
     {
         public static string APP_DIR = AppDomain.CurrentDomain.BaseDirectory.Trim();
 
-        public static string MY_NAME = "GeekDesk-D";
+        // 是否为开发模式
+        public static bool DEV = false;
+
+        public static string MY_NAME = DEV ? "GeekDesk-D" : "GeekDesk";
 
         /// <summary>
         /// app数据文件路径

+ 6 - 2
Control/Other/BacklogNotificatin.xaml

@@ -2,11 +2,15 @@
         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
         xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         xmlns:hc="https://handyorg.github.io/handycontrol"
-        Background="AliceBlue"
-        BorderThickness="1"
+        BorderThickness="0"
+        Style="{StaticResource BorderBG}"
+        Margin="15"
         BorderBrush="{DynamicResource BorderBrush}"
         Width="320"
         Height="450">
+    <Border.Background>
+        <SolidColorBrush Color="AliceBlue" Opacity="0.96"/>
+    </Border.Background>
     <Grid>
 
         <Image Source="/Resource/Image/BacklogImg.png" Margin="22,35,22,361" />

+ 1 - 1
Control/Windows/UpdateWindow.xaml

@@ -24,7 +24,7 @@
                             <TextBlock Margin="10" x:Name="MsgTitle" TextWrapping="Wrap" FontSize="16" HorizontalAlignment="Left" Style="{DynamicResource TextBlockLargeBold}" Text="测试"/>
                             <StackPanel x:Name="MsgPanel">
                                 <hc:ScrollViewer x:Name="MsgBar"  HorizontalScrollBarVisibility="Visible"  IsInertiaEnabled="True" Margin="10" Width="430">
-                                    <TextBlock  Width="430" LineHeight="20" x:Name="Msg" TextWrapping="Wrap" VerticalAlignment="Center" Text=""/>
+                                    <TextBlock  Width="430" FontSize="15" LineHeight="22" x:Name="Msg" TextWrapping="Wrap" VerticalAlignment="Center" Text="测试"/>
                                 </hc:ScrollViewer>
                             </StackPanel>
                         </StackPanel>

+ 1 - 1
MainWindow.xaml.cs

@@ -100,7 +100,7 @@ namespace GeekDesk
             RegisterCreateToDoHotKey(true);
 
             //注册自启动
-            if (!appData.AppConfig.SelfStartUped && "GeekDesk".Equals(Constants.MY_NAME))
+            if (!appData.AppConfig.SelfStartUped && !Constants.DEV)
             {
                 RegisterUtil.SetSelfStarting(appData.AppConfig.SelfStartUp, Constants.MY_NAME);
             }

+ 2 - 2
Thread/UpdateThread.cs

@@ -32,7 +32,7 @@ namespace GeekDesk.Thread
             {
 
                 //等待1分钟后再检查更新  有的网络连接过慢
-                System.Threading.Thread.Sleep(1 * 1000);
+                System.Threading.Thread.Sleep(60 * 1000);
 
                 string updateUrl;
                 string nowVersion = ConfigurationManager.AppSettings["Version"];
@@ -50,7 +50,7 @@ namespace GeekDesk.Thread
                 {
                     JObject jo = JObject.Parse(updateInfo);
                     string onlineVersion = jo["version"].ToString();
-                    if (onlineVersion.CompareTo(nowVersion) > 0 || true)
+                    if (onlineVersion.CompareTo(nowVersion) > 0)
                     {
                         App.Current.Dispatcher.Invoke((Action)(() =>
                         {

+ 1 - 1
Update.json

@@ -2,7 +2,7 @@
 	"title": "版本更新",
 	"subTitle": "V2.3.20 正式版",
 	"msgTitle": "本次更新内容如下",
-	"msg": "['']",
+	"msg": "['一个小更新, 修复了一部分bug并增加了部分功能','修复无法修改菜单图标的bug','修复图标锯齿状bug','修复热键不支持Alt的bug','增加鼠标中键呼出功能','界面美化等','最后去给我点个star呗']",
 	"githubUrl": "https://github.com/Demo-Liu/GeekDesk/releases",
 	"giteeUrl": "https://gitee.com/demo_liu/GeekDesk/releases",
 	"version": "2.3.20"