Browse Source

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

pull/886/head
Valentin Radu 4 years ago
parent
commit
6be380826a
  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
{ {
printf("consent granted\n"); printf("consent granted\n");
PostMessageW(EPWeather_Instance->hWnd, EP_WEATHER_WM_FETCH_DATA, 0, 0); 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, NULL); SetTimer(EPWeather_Instance->hWnd, EP_WEATHER_TIMER_REQUEST_REFRESH, EP_WEATHER_TIMER_REQUEST_REFRESH_DELAY * 3, NULL);
return S_OK; return S_OK;
} }
else else

Loading…
Cancel
Save