Fix bugs and proxy issues

This commit is contained in:
XY Wang 2021-09-19 01:12:13 +08:00
parent 99d247c06f
commit 75f9ec61eb

View File

@ -219,6 +219,8 @@ namespace Ink_Canvas
//检查
new Thread(new ThreadStart(() => {
try
{
string response = GetWebClient("http://e.wxriw.cn:1957");
if (response.Contains("Special Version"))
{
@ -239,6 +241,8 @@ namespace Ink_Canvas
}
}
}
}
catch { }
})).Start();
//加载设置
@ -411,13 +415,13 @@ namespace Ink_Canvas
if (Main_Grid.Background == Brushes.Transparent)
{
BtnHideInkCanvas_Click(BtnHideInkCanvas, null);
inkCanvas.EditingMode = InkCanvasEditingMode.Ink;
if (currentMode == 1)
{
currentMode = 0;
GridBackgroundCover.Visibility = Visibility.Hidden;
}
}
inkCanvas.EditingMode = InkCanvasEditingMode.Ink;
}
private void BtnColorBlack_Click(object sender, RoutedEventArgs e)
@ -1040,6 +1044,7 @@ namespace Ink_Canvas
{
HttpWebRequest myrq = (HttpWebRequest)WebRequest.Create(url);
myrq.Proxy = null;
myrq.KeepAlive = false;
myrq.Timeout = 30 * 1000;
myrq.Method = "Get";