WebView: refresh the page of clear cache, bugfixes

git-svn-id: svn://kolibrios.org@7893 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
2020-05-07 21:13:43 +00:00
parent b88f3e2118
commit 88a13211ae
5 changed files with 24 additions and 13 deletions

View File

@@ -390,12 +390,7 @@ void ProcessEvent(dword id__)
EventSubmitOmnibox();
return;
case REFRESH_BUTTON:
if (http.transfer) {
StopLoading();
draw_window();
} else {
OpenPage(history.current());
}
EventRefreshPage();
return;
case CHANGE_ENCODING:
EventShowEncodingsList();
@@ -429,6 +424,7 @@ void ProcessEvent(dword id__)
case CLEAR_CACHE:
pages_cache.clear();
notify(#clear_cache_ok);
EventRefreshPage();
return;
case IN_NEW_TAB:
open_new_tab = true;
@@ -811,6 +807,16 @@ void EventViewSource()
EventOpenNewTab(history.current());
}
void EventRefreshPage()
{
if (http.transfer) {
StopLoading();
draw_window();
} else {
OpenPage(history.current());
}
}
dword GetFileSize(dword _path)
{
BDVK bdvk;