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"); + }