Browse Source

Weather: Increased refresh delay at first startup (given more time for dark mode cookie to set itself up)

pull/886/head 22000.493.42.11_09f5390
Valentin Radu 4 years ago
parent
commit
09f5390a23
  1. 2
      ep_weather_host/ep_weather_host.c

2
ep_weather_host/ep_weather_host.c

@ -359,7 +359,7 @@ HRESULT STDMETHODCALLTYPE ICoreWebView2_ExecuteScriptCompleted(ICoreWebView2Exec @@ -359,7 +359,7 @@ HRESULT STDMETHODCALLTYPE ICoreWebView2_ExecuteScriptCompleted(ICoreWebView2Exec
{
printf("consent granted\n");
PostMessageW(EPWeather_Instance->hWnd, EP_WEATHER_WM_FETCH_DATA, 0, 0);
SetTimer(EPWeather_Instance->hWnd, EP_WEATHER_TIMER_REQUEST_REFRESH, EP_WEATHER_TIMER_REQUEST_REFRESH_DELAY * 3, NULL);
SetTimer(EPWeather_Instance->hWnd, EP_WEATHER_TIMER_REQUEST_REFRESH, EP_WEATHER_TIMER_REQUEST_REFRESH_DELAY * 5, NULL);
return S_OK;
}
else

Loading…
Cancel
Save