2017-10-14 00:06:58 +02:00
|
|
|
|
namespace ElectronNET.API.Entities
|
|
|
|
|
|
{
|
2017-10-24 21:43:27 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
///
|
|
|
|
|
|
/// </summary>
|
2017-10-14 00:06:58 +02:00
|
|
|
|
public class LoginItemSettings
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2020-05-31 03:09:54 +02:00
|
|
|
|
/// <see langword="true"/> if the app is set to open at login.
|
2017-10-14 00:06:58 +02:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool OpenAtLogin { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2020-05-31 03:09:54 +02:00
|
|
|
|
/// <see langword="true"/> if the app is set to open as hidden at login. This setting is not available
|
|
|
|
|
|
/// on <see href="https://www.electronjs.org/docs/tutorial/mac-app-store-submission-guide">MAS builds</see>.
|
2017-10-14 00:06:58 +02:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool OpenAsHidden { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2020-05-31 03:09:54 +02:00
|
|
|
|
/// <see langword="true"/> if the app was opened at login automatically. This setting is not available
|
|
|
|
|
|
/// on <see href="https://www.electronjs.org/docs/tutorial/mac-app-store-submission-guide">MAS builds</see>.
|
2017-10-14 00:06:58 +02:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool WasOpenedAtLogin { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2020-05-31 03:09:54 +02:00
|
|
|
|
/// <see langword="true"/> if the app was opened as a hidden login item. This indicates that the app should not
|
|
|
|
|
|
/// open any windows at startup. This setting is not available on
|
|
|
|
|
|
/// <see href="https://www.electronjs.org/docs/tutorial/mac-app-store-submission-guide">MAS builds</see>.
|
2017-10-14 00:06:58 +02:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool WasOpenedAsHidden { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2020-05-31 03:09:54 +02:00
|
|
|
|
/// <see langword="true"/> if the app was opened as a login item that should restore the state from the previous
|
|
|
|
|
|
/// session. This indicates that the app should restore the windows that were open the last time the app was closed.
|
|
|
|
|
|
/// This setting is not available on <see href="https://www.electronjs.org/docs/tutorial/mac-app-store-submission-guide">MAS builds</see>.
|
2017-10-14 00:06:58 +02:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public bool RestoreState { get; set; }
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|