代码优化
This commit is contained in:
@@ -2829,7 +2829,6 @@ namespace Ink_Canvas
|
||||
|
||||
private bool isOpeningOrHidingSettingsPane;
|
||||
private bool wasNoFocusModeBeforeSettings;
|
||||
private bool userChangedNoFocusModeInSettings;
|
||||
|
||||
private async void BtnSettings_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
@@ -2855,7 +2854,6 @@ namespace Ink_Canvas
|
||||
|
||||
BorderSettings.Visibility = Visibility.Visible;
|
||||
wasNoFocusModeBeforeSettings = Settings.Advanced.IsNoFocusMode;
|
||||
userChangedNoFocusModeInSettings = false; // 重置用户修改标志
|
||||
if (wasNoFocusModeBeforeSettings)
|
||||
{
|
||||
isTemporarilyDisablingNoFocusMode = true;
|
||||
|
||||
@@ -97,8 +97,6 @@ namespace Ink_Canvas
|
||||
|
||||
// 当前播放页码跟踪
|
||||
private int _currentSlideShowPosition = 0;
|
||||
private readonly object _slideSwitchLock = new object();
|
||||
private bool _isProcessingSlideSwitch = false;
|
||||
|
||||
private Dictionary<int, MemoryStream> _memoryStreams = new Dictionary<int, MemoryStream>();
|
||||
private int _previousSlideID = 0;
|
||||
@@ -1466,10 +1464,6 @@ namespace Ink_Canvas
|
||||
// 重置当前播放页码跟踪
|
||||
_currentSlideShowPosition = 0;
|
||||
_previousSlideID = 0;
|
||||
lock (_slideSwitchLock)
|
||||
{
|
||||
_isProcessingSlideSwitch = false;
|
||||
}
|
||||
lock (_memoryStreams)
|
||||
{
|
||||
foreach (var stream in _memoryStreams.Values)
|
||||
|
||||
Reference in New Issue
Block a user