Make clear browser cache button work with CEF (requires restart now)
parent
3fcd9a7477
commit
91f3b07ee6
|
|
@ -23788,6 +23788,17 @@ Change of this parameter will affect the layout of buttons in notification toast
|
|||
<key>Value</key>
|
||||
<integer>1</integer>
|
||||
</map>
|
||||
<key>FSStartupClearBrowserCache</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Clear internal browser cache on next startup.</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
</map>
|
||||
</llsd>
|
||||
|
||||
|
|
|
|||
|
|
@ -5137,6 +5137,18 @@ bool LLAppViewer::initCache()
|
|||
}
|
||||
// </FS:Ansariel>
|
||||
|
||||
// <FS:Ansariel> Purge web browser cache
|
||||
if (gSavedSettings.getBOOL("FSStartupClearBrowserCache"))
|
||||
{
|
||||
std::string browser_cache = gDirUtilp->getExpandedFilename(LL_PATH_CACHE, "cef_cache");
|
||||
if (LLFile::isdir(browser_cache))
|
||||
{
|
||||
gDirUtilp->deleteDirAndContents(browser_cache);
|
||||
}
|
||||
gSavedSettings.setBOOL("FSStartupClearBrowserCache", FALSE);
|
||||
}
|
||||
// </FS:Ansariel>
|
||||
|
||||
// <FS:ND> For Windows, purging the cache can take an extraordinary amount of time. Rename the cache dir and purge it using another thread.
|
||||
startCachePurge();
|
||||
// </FS:ND>
|
||||
|
|
|
|||
|
|
@ -273,8 +273,7 @@ bool callback_clear_web_browser_cache(const LLSD& notification, const LLSD& resp
|
|||
S32 option = LLNotificationsUtil::getSelectedOption(notification, response);
|
||||
if ( option == 0 ) // YES
|
||||
{
|
||||
LLViewerMedia::clearAllCaches();
|
||||
LLViewerMedia::clearAllCookies();
|
||||
gSavedSettings.setBOOL("FSStartupClearBrowserCache", TRUE);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
@ -2493,9 +2492,6 @@ void LLFloaterPreference::setPersonalInfo(const std::string& visibility, bool im
|
|||
|
||||
// <FS:Ansariel> Clear inventory cache button
|
||||
getChildView("ClearInventoryCache")->setEnabled(TRUE);
|
||||
|
||||
// <FS:Ansariel> Clear web browser cache button
|
||||
getChildView("ClearWebBrowserCache")->setEnabled(TRUE);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -2486,7 +2486,7 @@ Möchten Sie den Nicht-stören-Modus deaktivieren, bevor Sie diese Transaktion a
|
|||
<usetemplate name="okcancelbuttons" notext="Abbrechen" yestext="OK"/>
|
||||
</notification>
|
||||
<notification name="ConfirmClearWebBrowserCache">
|
||||
Möchten Sie Ihren Webbrowser-Cache wirklich leeren?
|
||||
Möchten Sie Ihren Webbrowser-Cache wirklich leeren (Benötigt Neustart)?
|
||||
<usetemplate name="okcancelbuttons" notext="Abbrechen" yestext="OK"/>
|
||||
</notification>
|
||||
<notification name="ConfirmClearCookies">
|
||||
|
|
|
|||
|
|
@ -6281,7 +6281,7 @@ Are you sure you want to clear your inventory cache?
|
|||
icon="alertmodal.tga"
|
||||
name="ConfirmClearWebBrowserCache"
|
||||
type="alertmodal">
|
||||
Are you sure you want to clear your web browser cache?
|
||||
Are you sure you want to clear your web browser cache (Requires Restart)?
|
||||
<tag>confirm</tag>
|
||||
<usetemplate
|
||||
name="okcancelbuttons"
|
||||
|
|
|
|||
|
|
@ -297,7 +297,6 @@
|
|||
</combo_box>
|
||||
|
||||
<button
|
||||
enabled="false"
|
||||
follows="right|top"
|
||||
height="23"
|
||||
label="Clear Browser Cache"
|
||||
|
|
|
|||
|
|
@ -2463,10 +2463,12 @@ http://secondlife.com/download.
|
|||
Вы действительно хотите очистить кэш инвентаря?
|
||||
<usetemplate name="okcancelbuttons" notext="Отмена" yestext="OK"/>
|
||||
</notification>
|
||||
<!--
|
||||
<notification name="ConfirmClearWebBrowserCache">
|
||||
Вы действительно хотите очистить кэш браузера?
|
||||
<usetemplate name="okcancelbuttons" notext="Отмена" yestext="OK"/>
|
||||
</notification>
|
||||
-->
|
||||
<notification name="ConfirmClearCookies">
|
||||
Вы действительно хотите удалить файлы cookie?
|
||||
<usetemplate name="okcancelbuttons" notext="Отмена" yestext="Да"/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue