mirror of https://github.com/RPCS3/rpcs3.git
Qt: remove "Send Exit CMD" menu option
This is pointless now, since we always exit games with this command.
This commit is contained in:
parent
f3fa7119ac
commit
9554adda28
|
@ -1665,7 +1665,6 @@ void main_window::EnableMenus(bool enabled) const
|
||||||
|
|
||||||
// PS3 Commands
|
// PS3 Commands
|
||||||
ui->sysSendOpenMenuAct->setEnabled(enabled);
|
ui->sysSendOpenMenuAct->setEnabled(enabled);
|
||||||
ui->sysSendExitAct->setEnabled(enabled);
|
|
||||||
|
|
||||||
// Tools
|
// Tools
|
||||||
ui->toolskernel_explorerAct->setEnabled(enabled);
|
ui->toolskernel_explorerAct->setEnabled(enabled);
|
||||||
|
@ -2046,14 +2045,6 @@ void main_window::CreateConnects()
|
||||||
ui->sysSendOpenMenuAct->setText(tr("Send &%0 system menu cmd").arg(m_sys_menu_opened ? tr("close") : tr("open")));
|
ui->sysSendOpenMenuAct->setText(tr("Send &%0 system menu cmd").arg(m_sys_menu_opened ? tr("close") : tr("open")));
|
||||||
});
|
});
|
||||||
|
|
||||||
connect(ui->sysSendExitAct, &QAction::triggered, this, []()
|
|
||||||
{
|
|
||||||
if (Emu.IsStopped()) return;
|
|
||||||
|
|
||||||
gui_log.notice("User triggered \"Send exit command\" action in menu bar");
|
|
||||||
sysutil_send_system_cmd(0x0101 /* CELL_SYSUTIL_REQUEST_EXITGAME */, 0);
|
|
||||||
});
|
|
||||||
|
|
||||||
const auto open_settings = [this](int tabIndex)
|
const auto open_settings = [this](int tabIndex)
|
||||||
{
|
{
|
||||||
settings_dialog dlg(m_gui_settings, m_emu_settings, tabIndex, this);
|
settings_dialog dlg(m_gui_settings, m_emu_settings, tabIndex, this);
|
||||||
|
|
|
@ -223,7 +223,6 @@
|
||||||
<addaction name="sysRebootAct"/>
|
<addaction name="sysRebootAct"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="sysSendOpenMenuAct"/>
|
<addaction name="sysSendOpenMenuAct"/>
|
||||||
<addaction name="sysSendExitAct"/>
|
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QMenu" name="menuConfiguration">
|
<widget class="QMenu" name="menuConfiguration">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
|
@ -477,14 +476,6 @@
|
||||||
<string>Send Open System Menu CMD</string>
|
<string>Send Open System Menu CMD</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="sysSendExitAct">
|
|
||||||
<property name="enabled">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>Send Exit CMD</string>
|
|
||||||
</property>
|
|
||||||
</action>
|
|
||||||
<action name="confCPUAct">
|
<action name="confCPUAct">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>CPU</string>
|
<string>CPU</string>
|
||||||
|
|
Loading…
Reference in New Issue