mirror of https://github.com/WerWolv/ImHex.git
impr: Replace old headers with new ones in UNIX permission calculator
This commit is contained in:
parent
a51f9fd90c
commit
dd2ecb3dd9
|
@ -11,8 +11,7 @@ namespace hex::plugin::builtin {
|
|||
static bool setuid, setgid, sticky;
|
||||
static bool r[3], w[3], x[3];
|
||||
|
||||
ImGui::TextUnformatted("hex.builtin.tools.permissions.perm_bits"_lang);
|
||||
ImGui::Separator();
|
||||
ImGui::Header("hex.builtin.tools.permissions.perm_bits"_lang, true);
|
||||
|
||||
if (ImGui::BeginTable("Permissions", 4, ImGuiTableFlags_Borders)) {
|
||||
ImGui::TableSetupColumn("Special", ImGuiTableColumnFlags_NoSort);
|
||||
|
@ -43,9 +42,7 @@ namespace hex::plugin::builtin {
|
|||
ImGui::EndTable();
|
||||
}
|
||||
|
||||
ImGui::NewLine();
|
||||
ImGui::TextUnformatted("hex.builtin.tools.permissions.absolute"_lang);
|
||||
ImGui::Separator();
|
||||
ImGui::Header("hex.builtin.tools.permissions.absolute"_lang);
|
||||
|
||||
auto result = hex::format("{}{}{}{}",
|
||||
(setuid << 2) | (setgid << 1) | (sticky << 0),
|
||||
|
|
Loading…
Reference in New Issue