Skip to content

.activate() sometimes throw error #31

@JifengLegend

Description

@JifengLegend

Snipaste_2020-08-16_13-01-47
As the picture shows ,when I active the Typora window ,it throw the error message ,with the yellow flash in the dock icon ,and fail to active.

The bug is not 100% appear , just like 10%? this two lines code run several times , the environment is "Typora" app on the screen ,and lost focus .

When the error appear, the windowobject can normally work ,such as rewin.minimize() and rewin.restore() works well , only rewin.activate()failed.

And it also appear when I active "edge browser" app , and "windows Explorer" app(I'm not sure about this translation name , or "windows file resources explorer"?)

I'm not sure whether it is app conflict occur this ,and now , I use "force to minimize' and "restore" the target window to avoid this problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions