20210521 周五下班不带电脑了

This commit is contained in:
liufei
2021-05-21 17:19:46 +08:00
parent 9a6d4795e0
commit 8deff6c9d5
10 changed files with 152 additions and 45 deletions

View File

@@ -6,6 +6,7 @@ using GeekDesk.ViewModel;
using System;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Drawing.Imaging;
using System.IO;
using System.Windows;
using System.Windows.Controls;
@@ -110,6 +111,8 @@ namespace GeekDesk
{
string path = (string)obj;
//string base64 = ImageUtil.FileImageToBase64(path, ImageFormat.Jpeg);
IconInfo iconInfo = new IconInfo
{
Path = path,
@@ -500,6 +503,7 @@ namespace GeekDesk
{
this.Visibility = Visibility.Visible;
}
Keyboard.Focus(this);
}
/// <summary>
@@ -577,6 +581,14 @@ namespace GeekDesk
this.Visibility = Visibility.Collapsed;
}
}
private void window_Deactivated(object sender, EventArgs e)
{
if (appData.AppConfig.AppHideType == AppHideType.LOST_FOCUS)
{
this.Visibility = Visibility.Collapsed;
}
}
}