mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 07:51:28 +12:00
Qt: reset battery progress bar when not supported.
This commit is contained in:
parent
f88c3ae417
commit
bdd94f053c
1 changed files with 5 additions and 8 deletions
|
@ -412,10 +412,7 @@ void pad_settings_dialog::InitButtons()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_enable_battery)
|
ui->pb_battery->setValue(m_enable_battery ? battery_level : 0);
|
||||||
{
|
|
||||||
ui->pb_battery->setValue(battery_level);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (val <= 0)
|
if (val <= 0)
|
||||||
{
|
{
|
||||||
|
@ -436,14 +433,14 @@ void pad_settings_dialog::InitButtons()
|
||||||
const auto& fail_callback = [this](const std::string& pad_name)
|
const auto& fail_callback = [this](const std::string& pad_name)
|
||||||
{
|
{
|
||||||
SwitchPadInfo(pad_name, false);
|
SwitchPadInfo(pad_name, false);
|
||||||
|
|
||||||
if (m_enable_buttons)
|
if (m_enable_buttons)
|
||||||
{
|
{
|
||||||
SwitchButtons(false);
|
SwitchButtons(false);
|
||||||
}
|
}
|
||||||
if (m_enable_battery)
|
|
||||||
{
|
ui->pb_battery->setValue(0);
|
||||||
ui->pb_battery->setValue(0);
|
|
||||||
}
|
|
||||||
if (m_handler->has_deadzones())
|
if (m_handler->has_deadzones())
|
||||||
{
|
{
|
||||||
ui->preview_trigger_left->setValue(0);
|
ui->preview_trigger_left->setValue(0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue