Know if the user launched an app

前端 未结 2 899
后悔当初
后悔当初 2021-01-16 09:28

Alright, this title might seem strange, but bear with me. I have an app which can be set on its preferences by the user to launch at login. That means I can expect sometimes

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-16 10:31

    I don't have an exact answer to your question. However, may I suggest that your app should show the window if the window was visible when the user last quit your app?

    This may be more in-line with the Mac UI guidelines' suggestion on restoring apps and windows, and is within the user's expectations.

    Also, a user who set your app to launch at login will probably understand to close the window and not have it restored the next time, or make the system also hide your app during login.

提交回复
热议问题