From c8738d3cb8d5f2ca23f022631a7cc9688cc72876 Mon Sep 17 00:00:00 2001 From: silentmoon Date: Tue, 20 Nov 2018 15:39:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ClipOne/view/MainWindow.xaml.cs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/ClipOne/view/MainWindow.xaml.cs b/ClipOne/view/MainWindow.xaml.cs index 8dd7982..8f08f58 100644 --- a/ClipOne/view/MainWindow.xaml.cs +++ b/ClipOne/view/MainWindow.xaml.cs @@ -144,16 +144,14 @@ public partial class MainWindow : Window public MainWindow() { InitializeComponent(); - - System.IO.Directory.SetCurrentDirectory(System.Windows.Forms.Application.StartupPath); - - + + } private void Window_Loaded(object sender, RoutedEventArgs e) { - + if (!Directory.Exists(cacheDir)) { Directory.CreateDirectory(cacheDir); @@ -996,7 +994,7 @@ private void DiyHide() if (activeHwnd != IntPtr.Zero) { WinAPIHelper.SetForegroundWindow(activeHwnd); - // File.AppendAllText("C:/Users/xiecan/test.txt", activeHwnd+"\n"); + }