mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
add setting for quickplay singleplayer
Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
@ -309,4 +309,17 @@ bool WideBar::checkHash(QByteArray const& old_hash) const
|
||||
return old_hash == getHash();
|
||||
}
|
||||
|
||||
void WideBar::setActionVisible(QAction* action, bool visible)
|
||||
{
|
||||
auto iter = getMatching(action);
|
||||
if (iter == m_entries.end()) {
|
||||
return;
|
||||
}
|
||||
|
||||
iter->bar_action->setVisible(visible);
|
||||
|
||||
// NOTE: This is needed so that disabled actions get reflected on the button when it is made visible.
|
||||
static_cast<ActionButton*>(widgetForAction(iter->bar_action))->actionChanged();
|
||||
}
|
||||
|
||||
#include "WideBar.moc"
|
||||
|
Reference in New Issue
Block a user