Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void BrowserManager::clearCashe()
- {
- std::filesystem::remove_all(CASHE_PATH.c_str());
- }
- void BrowserManager::clearBrowserData()
- {
- std::filesystem::remove_all(BROWSER_DATA_PATH.c_str());
- }
- void __fastcall TSettingsForm::historyBoxDblClick(TObject *Sender)
- {
- int size = WebView->historyManager->getSize();
- int index = size - historyBox->ItemIndex - 1;
- std::vector<SiteVisit> history = WebView->historyManager->getHistory();
- WebView->createNewTab();
- WebView->getCurrentBrowser()->Navigate(history[index].getUrl().c_str());
- SettingsForm->Close();
- }
- bool BookmarksManager::clearBookmarks()
- {
- bookmarks.clear();
- return writeBookmarks("bookmarks");
- }
- bool HistoryManager::clearHistory()
- {
- history.clear();
- return writeHistory("history");
- }
- void TWebView::setLoadingStatus(bool status)
- {
- isLoaded = !status;
- if (status)
- {
- activityIndicator->StartAnimation();
- }
- else
- {
- activityIndicator->StopAnimation();
- }
- updateBtn->Visible = !status;
- activityIndicator->Visible = status;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement