mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-19 06:40:58 +00:00
Qt: Always show the stop button in the toolbar
Reverts a previous Qt change that was likely not intended to match WX.
This commit is contained in:
parent
8dcd5cdd1d
commit
5c2e03380f
@ -35,7 +35,6 @@ void ToolBar::OnEmulationStateChanged(Core::State state)
|
|||||||
{
|
{
|
||||||
bool running = state != Core::State::Uninitialized;
|
bool running = state != Core::State::Uninitialized;
|
||||||
m_stop_action->setEnabled(running);
|
m_stop_action->setEnabled(running);
|
||||||
m_stop_action->setVisible(running);
|
|
||||||
m_fullscreen_action->setEnabled(running);
|
m_fullscreen_action->setEnabled(running);
|
||||||
m_screenshot_action->setEnabled(running);
|
m_screenshot_action->setEnabled(running);
|
||||||
|
|
||||||
@ -62,7 +61,7 @@ void ToolBar::MakeActions()
|
|||||||
m_controllers_action = AddAction(this, tr("Controllers"), this, &ToolBar::ControllersPressed);
|
m_controllers_action = AddAction(this, tr("Controllers"), this, &ToolBar::ControllersPressed);
|
||||||
m_controllers_action->setEnabled(true);
|
m_controllers_action->setEnabled(true);
|
||||||
|
|
||||||
// Ensure every button has the same width
|
// Ensure every button has about the same width
|
||||||
std::vector<QWidget*> items;
|
std::vector<QWidget*> items;
|
||||||
for (const auto& action : {m_open_action, m_play_action, m_pause_action, m_stop_action,
|
for (const auto& action : {m_open_action, m_play_action, m_pause_action, m_stop_action,
|
||||||
m_stop_action, m_fullscreen_action, m_screenshot_action,
|
m_stop_action, m_fullscreen_action, m_screenshot_action,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user