Don't display reload as toggle command
File->Reload was displayed with a checkbox, suggesting the command would toggle something. Of course it does not. So remove this code which makes the command appear as toggle command. Change-Id: I5dd87fd82524e211e0d3444b14bc22dc4469de2d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88731 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
This commit is contained in:
@@ -931,13 +931,6 @@ void SfxViewFrame::StateReload_Impl( SfxItemSet& rSet )
|
||||
{
|
||||
if ( !pSh->CanReload_Impl() || pSh->GetCreateMode() == SfxObjectCreateMode::EMBEDDED )
|
||||
rSet.DisableItem(nWhich);
|
||||
else
|
||||
{
|
||||
// If any ChildFrame is reloadable, the slot is enabled,
|
||||
// so you can perform CTRL-Reload
|
||||
rSet.Put( SfxBoolItem( nWhich, false));
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user