Skip to content

Commit

Permalink
hack for post process issue
Browse files Browse the repository at this point in the history
  • Loading branch information
clown committed Aug 8, 2024
1 parent 5ec9aab commit 294cbd9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Applications/Converter/Main/Sources/Presenters/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,16 @@ public void Invoke()
var ready = Security.Confirm() && Settings.Confirm();
if (ready) Run(() => {
Facade.Invoke();
// NOTE: We are currently aware of an issue where the window does not
// show when attempting to open an image file associated with Microsoft
// Photo (version 2024.11060.20006.0 and later). This issue is caused by
// CubePDF exiting immediately after the Microsoft Photo process is
// launched, and can be worked around by waiting a short time before
// exiting. Therefore, we have implemented Sleep as a workaround.
// The fundamental solution is a future issue.
if (Facade.Settings.Value.PostProcess == PostProcess.Open) Thread.Sleep(500);
Send(new CloseMessage());
}, false);
}
Expand Down

0 comments on commit 294cbd9

Please sign in to comment.