Satisfy Issue 613: TIme-stamp when viewing old notices in groups
To activate set LiruGroupNoticeTimes to true via debug settings Depending on your date and time settings, you may need to resize the date column of the scroll list and hit refresh to see the times, alternatively, the tooltips will display the whole time always.
This commit is contained in:
@@ -674,10 +674,21 @@
|
||||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>LiruGroupNoticeTimes</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Append timestamp to date in the lists of past group notices</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>Boolean</string>
|
||||
<key>Value</key>
|
||||
<boolean>0</boolean>
|
||||
</map>
|
||||
<key>LiruItalicizeActions</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>When enabled, /me chat will be italicized.</string>
|
||||
<string>When enabled, /me chat will be italicized.</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
|
||||
@@ -477,7 +477,10 @@ void LLPanelGroupNotices::processNotices(LLMessageSystem* msg)
|
||||
row["columns"][2]["value"] = name;
|
||||
|
||||
std::string buffer;
|
||||
timeToFormattedString(t, gSavedSettings.getString("ShortDateFormat"), buffer);
|
||||
std::string format(gSavedSettings.getString("ShortDateFormat"));
|
||||
if (gSavedSettings.getBOOL("LiruGroupNoticeTimes"))
|
||||
format += " " + gSavedSettings.getString("ShortTimeFormat");
|
||||
timeToFormattedString(t, format, buffer);
|
||||
row["columns"][3]["column"] = "date";
|
||||
row["columns"][3]["value"] = buffer;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user