mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-07-01 09:09:52 +00:00
[client] app: add option to disable waiting for host message
This commit is contained in:
parent
f15d72cdfe
commit
add45347b5
@ -317,6 +317,13 @@ static struct Option options[] =
|
||||
.type = OPTION_TYPE_BOOL,
|
||||
.value.x_bool = true
|
||||
},
|
||||
{
|
||||
.module = "win",
|
||||
.name = "disableWaitingMessage",
|
||||
.description = "Disables the confirmation message for a cleaner UI",
|
||||
.type = OPTION_TYPE_BOOL,
|
||||
.value.x_bool = false
|
||||
},
|
||||
|
||||
// input options
|
||||
{
|
||||
@ -686,6 +693,7 @@ bool config_load(int argc, char * argv[])
|
||||
g_params.uiSize = option_get_int ("win", "uiSize" );
|
||||
g_params.jitRender = option_get_bool ("win", "jitRender" );
|
||||
g_params.requestActivation = option_get_bool ("win", "requestActivation" );
|
||||
g_params.disableWaitingMessage = option_get_bool ("win", "disableWaitingMessage");
|
||||
|
||||
if (g_params.noScreensaver && g_params.autoScreensaver)
|
||||
{
|
||||
|
@ -1500,6 +1500,8 @@ restart:
|
||||
if (waitCount == 30)
|
||||
{
|
||||
DEBUG_BREAK();
|
||||
if (!g_params.disableWaitingMessage)
|
||||
{
|
||||
msgs[msgsCount++] = app_msgBox(
|
||||
"Host Application Not Running",
|
||||
"It seems the host application is not running or your\n"
|
||||
@ -1512,6 +1514,7 @@ restart:
|
||||
"Continuing to wait...");
|
||||
|
||||
msgs[msgsCount++] = showSpiceInputHelp();
|
||||
}
|
||||
|
||||
DEBUG_INFO("Check the host log in your guest at %%ProgramData%%\\Looking Glass (host)\\looking-glass-host.txt");
|
||||
DEBUG_INFO("Continuing to wait...");
|
||||
|
@ -204,6 +204,7 @@ struct AppParams
|
||||
int uiSize;
|
||||
bool jitRender;
|
||||
bool requestActivation;
|
||||
bool disableWaitingMessage;
|
||||
|
||||
unsigned int cursorPollInterval;
|
||||
unsigned int framePollInterval;
|
||||
|
Loading…
x
Reference in New Issue
Block a user