Feature Request: Add a debug setting, LiruLegacyLogLaunch, to use the old, non-browser method to open chat logs.

This commit is contained in:
Inusaito Sayori
2013-10-07 05:43:56 -04:00
parent a1c43e3539
commit 99f81daa99
2 changed files with 16 additions and 0 deletions

View File

@@ -731,6 +731,17 @@
<key>Value</key>
<integer>1</integer>
</map>
<key>LiruLegacyLogLaunch</key>
<map>
<key>Comment</key>
<string>When opening a chat log, open in an external text editor instead of a browser floater(Windows Only).</string>
<key>Persist</key>
<integer>1</integer>
<key>Type</key>
<string>Boolean</string>
<key>Value</key>
<boolean>0</boolean>
</map>
<key>LiruLegacyOutfitStoreObjChanges</key>
<map>
<key>Comment</key>

View File

@@ -1089,6 +1089,11 @@ void LLFloaterIMPanel::onFlyoutCommit(LLComboBox* flyout, const LLSD& value)
void show_log_browser(const std::string& name, const std::string& id)
{
if (gSavedSettings.getBOOL("LiruLegacyLogLaunch"))
{
gViewerWindow->getWindow()->ShellEx("\"" + LLLogChat::makeLogFileName(name) + "\"");
return;
}
LLFloaterWebContent::Params p;
p.url("file:///" + LLLogChat::makeLogFileName(name));
p.id(id);