forked from KolibriOS/kolibrios
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user