mirror of
https://github.com/QL-Win/QuickLook.git
synced 2025-09-26 03:58:36 +00:00
tooltip
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
@@ -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];
|
||||
|
Reference in New Issue
Block a user