mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
fix(OtherLogsPage): remove CR when removing LF
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
(cherry picked from commit 3f11b185a8)
This commit is contained in:
parent
156f7eabd4
commit
3ecb1ca9ba
1 changed files with 3 additions and 1 deletions
|
|
@ -280,7 +280,9 @@ void OtherLogsPage::reload()
|
|||
if (line.isEmpty())
|
||||
return false;
|
||||
if (line.back() == '\n')
|
||||
line = line.remove(line.size() - 1, 1);
|
||||
line.resize(line.size() - 1);
|
||||
if (line.back() == '\r')
|
||||
line.resize(line.size() - 1);
|
||||
MessageLevel level = MessageLevel::Unknown;
|
||||
|
||||
QString lineTemp = line; // don't edit out the time and level for clarity
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue