Added millisecond timestamp formats to settings (#2375)

This commit is contained in:
Paweł 2021-02-06 18:07:02 +01:00 committed by GitHub
parent 3023a44a21
commit a4fb20c72c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -257,9 +257,10 @@ void GeneralPage::initLayout(GeneralPageView &layout)
layout.addCheckbox("Highlight messages redeemed with Channel Points", layout.addCheckbox("Highlight messages redeemed with Channel Points",
s.enableRedeemedHighlight); s.enableRedeemedHighlight);
layout.addDropdown<QString>( layout.addDropdown<QString>(
"Timestamp format (a = am/pm)", "Timestamp format (a = am/pm, zzz = milliseconds)",
{"Disable", "h:mm", "hh:mm", "h:mm a", "hh:mm a", "h:mm:ss", "hh:mm:ss", {"Disable", "h:mm", "hh:mm", "h:mm a", "hh:mm a", "h:mm:ss", "hh:mm:ss",
"h:mm:ss a", "hh:mm:ss a"}, "h:mm:ss a", "hh:mm:ss a", "h:mm:ss.zzz", "h:mm:ss.zzz a",
"hh:mm:ss.zzz", "hh:mm:ss.zzz a"},
s.timestampFormat, s.timestampFormat,
[](auto val) { [](auto val) {
return getSettings()->showTimestamps.getValue() return getSettings()->showTimestamps.getValue()