Skip to content

Commit 134c13b

Browse files
committed
Add resetDocs action
1 parent 20bab20 commit 134c13b

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

UEFITool/uefitool.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ markingEnabled(true)
121121
connect(ui->actionUncompressedHashSha384, SIGNAL(triggered()), this, SLOT(hashUncompressedSha384()));
122122
connect(ui->actionUncompressedHashSha512, SIGNAL(triggered()), this, SLOT(hashUncompressedSha512()));
123123
connect(ui->actionUncompressedHashSm3, SIGNAL(triggered()), this, SLOT(hashUncompressedSm3()));
124+
connect(ui->actionResetDocks, SIGNAL(triggered()), this, SLOT(resetDocks()));
124125
for (auto dock : findChildren<QDockWidget*>()) {
125126
connect(dock, SIGNAL(topLevelChanged(bool)), this, SLOT(onDockStateChange(bool)));
126127
connect(dock, SIGNAL(visibilityChanged(bool)), this, SLOT(onDockStateChange(bool)));

UEFITool/uefitool.ui

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,8 @@
553553
</property>
554554
<addaction name="actionToggleBootGuardMarking"/>
555555
<addaction name="separator"/>
556+
<addaction name="actionResetDocks"/>
557+
<addaction name="separator"/>
556558
<addaction name="actionCopyItemName"/>
557559
<addaction name="separator"/>
558560
<addaction name="actionExpandItemRecursively"/>
@@ -1092,6 +1094,11 @@
10921094
<string>SM3</string>
10931095
</property>
10941096
</action>
1097+
<action name="actionResetDocks">
1098+
<property name="text">
1099+
<string>&amp;Reset docks</string>
1100+
</property>
1101+
</action>
10951102
</widget>
10961103
<layoutdefault spacing="6" margin="11"/>
10971104
<resources/>

common/ffsparser.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2701,14 +2701,14 @@ USTATUS FfsParser::parseSectionHeader(const UByteArray & section, const UINT32 l
27012701

27022702
const EFI_COMMON_SECTION_HEADER* sectionHeader = (const EFI_COMMON_SECTION_HEADER*)(section.constData());
27032703
switch (sectionHeader->Type) {
2704-
// Special
2704+
// Special
27052705
case EFI_SECTION_COMPRESSION: return parseCompressedSectionHeader(section, localOffset, parent, index, probe);
27062706
case EFI_SECTION_GUID_DEFINED: return parseGuidedSectionHeader(section, localOffset, parent, index, probe);
27072707
case EFI_SECTION_FREEFORM_SUBTYPE_GUID: return parseFreeformGuidedSectionHeader(section, localOffset, parent, index, probe);
27082708
case EFI_SECTION_VERSION: return parseVersionSectionHeader(section, localOffset, parent, index, probe);
27092709
case PHOENIX_SECTION_POSTCODE:
27102710
case INSYDE_SECTION_POSTCODE: return parsePostcodeSectionHeader(section, localOffset, parent, index, probe);
2711-
// Common
2711+
// Common
27122712
case EFI_SECTION_DISPOSABLE:
27132713
case EFI_SECTION_DXE_DEPEX:
27142714
case EFI_SECTION_PEI_DEPEX:
@@ -2720,7 +2720,7 @@ USTATUS FfsParser::parseSectionHeader(const UByteArray & section, const UINT32 l
27202720
case EFI_SECTION_USER_INTERFACE:
27212721
case EFI_SECTION_FIRMWARE_VOLUME_IMAGE:
27222722
case EFI_SECTION_RAW: return parseCommonSectionHeader(section, localOffset, parent, index, probe);
2723-
// Unknown
2723+
// Unknown
27242724
default:
27252725
USTATUS result = parseCommonSectionHeader(section, localOffset, parent, index, probe);
27262726
if (!probe)

0 commit comments

Comments
 (0)