mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
Merge pull request #12879 from LillyJadeKatrin/retroachievements-1200-shines
Trim extra characters from measured progress
This commit is contained in:
commit
a75c65bde2
@ -4,6 +4,7 @@
|
|||||||
#ifdef USE_RETRO_ACHIEVEMENTS
|
#ifdef USE_RETRO_ACHIEVEMENTS
|
||||||
#include "DolphinQt/Achievements/AchievementBox.h"
|
#include "DolphinQt/Achievements/AchievementBox.h"
|
||||||
|
|
||||||
|
#include <QByteArray>
|
||||||
#include <QDateTime>
|
#include <QDateTime>
|
||||||
#include <QHBoxLayout>
|
#include <QHBoxLayout>
|
||||||
#include <QLabel>
|
#include <QLabel>
|
||||||
@ -96,7 +97,9 @@ void AchievementBox::UpdateData()
|
|||||||
m_progress_bar->setRange(0, 100);
|
m_progress_bar->setRange(0, 100);
|
||||||
m_progress_bar->setValue(m_achievement->measured_percent);
|
m_progress_bar->setValue(m_achievement->measured_percent);
|
||||||
m_progress_bar->setTextVisible(false);
|
m_progress_bar->setTextVisible(false);
|
||||||
m_progress_label->setText(QString::fromUtf8(m_achievement->measured_progress, PROGRESS_LENGTH));
|
m_progress_label->setText(
|
||||||
|
QString::fromUtf8(m_achievement->measured_progress,
|
||||||
|
qstrnlen(m_achievement->measured_progress, PROGRESS_LENGTH)));
|
||||||
m_progress_bar->setVisible(true);
|
m_progress_bar->setVisible(true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user