From d50d7570225fb8211dc6cbb184941f2ae63eded3 Mon Sep 17 00:00:00 2001 From: Paddy Xu Date: Sat, 27 Jan 2018 15:04:46 +0200 Subject: [PATCH] tooltip --- .../QuickLook.Plugin.CsvViewer/CsvViewerPanel.xaml.cs | 2 +- .../TextViewerPanel.xaml.cs | 2 +- QuickLook/ViewerWindow.xaml | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/QuickLook.Plugin/QuickLook.Plugin.CsvViewer/CsvViewerPanel.xaml.cs b/QuickLook.Plugin/QuickLook.Plugin.CsvViewer/CsvViewerPanel.xaml.cs index f022168..e6bb1fd 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.CsvViewer/CsvViewerPanel.xaml.cs +++ b/QuickLook.Plugin/QuickLook.Plugin.CsvViewer/CsvViewerPanel.xaml.cs @@ -44,7 +44,7 @@ namespace QuickLook.Plugin.CsvViewer const int limit = 10000; var binded = false; - using (var sr = new StreamReader(path)) + using (var sr = new StreamReader(new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite))) { using (var parser = new CsvParser(sr)) { diff --git a/QuickLook.Plugin/QuickLook.Plugin.TextViewer/TextViewerPanel.xaml.cs b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/TextViewerPanel.xaml.cs index e4135a6..9d40dc6 100644 --- a/QuickLook.Plugin/QuickLook.Plugin.TextViewer/TextViewerPanel.xaml.cs +++ b/QuickLook.Plugin/QuickLook.Plugin.TextViewer/TextViewerPanel.xaml.cs @@ -78,7 +78,7 @@ namespace QuickLook.Plugin.TextViewer private void LoadFile(string path) { - using (var s = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.Read)) + using (var s = new FileStream(path, FileMode.Open, FileAccess.Read, FileShare.ReadWrite)) { const int bufferLength = 1 * 1024 * 1024; var buffer = new byte[bufferLength]; diff --git a/QuickLook/ViewerWindow.xaml b/QuickLook/ViewerWindow.xaml index 4eaefd5..0498398 100644 --- a/QuickLook/ViewerWindow.xaml +++ b/QuickLook/ViewerWindow.xaml @@ -71,9 +71,9 @@ - -