Skip to content

Commit 037ece7

Browse files
authored
Merge pull request #455 from Freeesia/feature/fix_overlay_trigger
オーバーレイ切り替え機能の不具合修正
2 parents 05cd843 + 8758f29 commit 037ece7

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

WindowTranslator/Modules/Main/MainViewModelBase.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ partial void OnOverlayVisibleChanged(bool value)
101101
{
102102
if (value)
103103
{
104+
this.OcrTexts.Clear();
104105
// Start capture when overlay becomes visible
105106
this.capture.StartCapture(this.processInfoStore.MainWindowHandle);
106107

WindowTranslator/Modules/Main/OverlayMainWindow.xaml.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ private unsafe void UpdateWindowPositionAndSize()
174174

175175
// 上記のすべてのチェックに合格した場合、オーバーレイを表示
176176
this.SetCurrentValue(VisibilityProperty, Visibility.Visible);
177-
this.overlay.SetCurrentValue(UIElement.VisibilityProperty, Visibility.Visible);
178177

179178
// 本気のフルスクリーンだと何かの拍子に裏側に行ってしまうので、定期的に最前面に持ってくる
180179
var hWndHiddenOwner = Windows.Win32.PInvoke.GetWindow(new(this.windowHandle), GET_WINDOW_CMD.GW_OWNER);

0 commit comments

Comments
 (0)