improve:ROT联动
This commit is contained in:
@@ -221,10 +221,9 @@ namespace Ink_Canvas.Helpers
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (!_isModuleUnloading)
|
if (_disposed || _isModuleUnloading)
|
||||||
{
|
return;
|
||||||
CheckAndConnectToPPTViaRot();
|
CheckAndConnectToPPTViaRot();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
@@ -236,10 +235,9 @@ namespace Ink_Canvas.Helpers
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (!_isModuleUnloading && IsConnected)
|
if (_disposed || _isModuleUnloading || !IsConnected)
|
||||||
{
|
return;
|
||||||
CheckSlideShowState();
|
CheckSlideShowState();
|
||||||
}
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
@@ -249,7 +247,7 @@ namespace Ink_Canvas.Helpers
|
|||||||
|
|
||||||
private void CheckAndConnectToPPTViaRot()
|
private void CheckAndConnectToPPTViaRot()
|
||||||
{
|
{
|
||||||
if (_isModuleUnloading) return;
|
if (_disposed || _isModuleUnloading) return;
|
||||||
|
|
||||||
if (_pptApplication != null && !IsConnected)
|
if (_pptApplication != null && !IsConnected)
|
||||||
{
|
{
|
||||||
@@ -457,7 +455,8 @@ namespace Ink_Canvas.Helpers
|
|||||||
System.Threading.Thread.Sleep(200);
|
System.Threading.Thread.Sleep(200);
|
||||||
|
|
||||||
_isModuleUnloading = false;
|
_isModuleUnloading = false;
|
||||||
_unifiedRotTimer?.Start();
|
if (!_disposed)
|
||||||
|
_unifiedRotTimer?.Start();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ namespace Ink_Canvas
|
|||||||
private const int SlideSwitchDebounceMs = 150; // 防抖延迟150毫秒
|
private const int SlideSwitchDebounceMs = 150; // 防抖延迟150毫秒
|
||||||
|
|
||||||
private DispatcherTimer _exitPPTModeAfterDisconnectTimer;
|
private DispatcherTimer _exitPPTModeAfterDisconnectTimer;
|
||||||
private const int ExitPPTModeAfterDisconnectDelayMs = 800;
|
private const int ExitPPTModeAfterDisconnectDelayMs = 1200;
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region PPT Managers
|
#region PPT Managers
|
||||||
|
|||||||
Reference in New Issue
Block a user