mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-21 12:05:23 +00: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(battery_level);
|
||||
}
|
||||
ui->pb_battery->setValue(m_enable_battery ? battery_level : 0);
|
||||
|
||||
if (val <= 0)
|
||||
{
|
||||
|
@ -436,14 +433,14 @@ void pad_settings_dialog::InitButtons()
|
|||
const auto& fail_callback = [this](const std::string& pad_name)
|
||||
{
|
||||
SwitchPadInfo(pad_name, false);
|
||||
|
||||
if (m_enable_buttons)
|
||||
{
|
||||
SwitchButtons(false);
|
||||
}
|
||||
if (m_enable_battery)
|
||||
{
|
||||
ui->pb_battery->setValue(0);
|
||||
}
|
||||
|
||||
ui->pb_battery->setValue(0);
|
||||
|
||||
if (m_handler->has_deadzones())
|
||||
{
|
||||
ui->preview_trigger_left->setValue(0);
|
||||
|
|
Loading…
Add table
Reference in a new issue