impr: Removed a bunch of trailing white spaces
This commit is contained in:
parent
55d7d7c026
commit
c76b4bc9e9
@ -435,7 +435,6 @@ namespace hex::plugin::builtin {
|
||||
mathHistory.push_back(result.value());
|
||||
lastMathError.clear();
|
||||
}
|
||||
|
||||
} catch (std::invalid_argument &e) {
|
||||
lastMathError = e.what();
|
||||
}
|
||||
@ -907,12 +906,12 @@ namespace hex::plugin::builtin {
|
||||
ImGui::TextSpinner("hex.builtin.tools.file_tools.splitter.picker.splitting"_lang);
|
||||
else {
|
||||
if (ImGui::Button("hex.builtin.tools.file_tools.splitter.picker.split"_lang)) {
|
||||
|
||||
splitterTask = TaskManager::createTask("hex.builtin.tools.file_tools.splitter.picker.splitting", 0, [](auto &task) {
|
||||
ON_SCOPE_EXIT {
|
||||
selectedFile.clear();
|
||||
baseOutputPath.clear();
|
||||
};
|
||||
|
||||
fs::File file(selectedFile, fs::File::Mode::Read);
|
||||
|
||||
if (!file.isValid()) {
|
||||
@ -971,7 +970,6 @@ namespace hex::plugin::builtin {
|
||||
ImGui::TableNextColumn();
|
||||
|
||||
if (ImGui::BeginListBox("##files", { -FLT_MIN, 10 * ImGui::GetTextLineHeightWithSpacing() })) {
|
||||
|
||||
u32 index = 0;
|
||||
for (auto &file : files) {
|
||||
if (ImGui::Selectable(hex::toUTF8String(file).c_str(), index == selectedIndex))
|
||||
@ -1047,9 +1045,7 @@ namespace hex::plugin::builtin {
|
||||
ImGui::TextSpinner("hex.builtin.tools.file_tools.combiner.combining"_lang);
|
||||
else {
|
||||
if (ImGui::Button("hex.builtin.tools.file_tools.combiner.combine"_lang)) {
|
||||
|
||||
combinerTask = TaskManager::createTask("hex.builtin.tools.file_tools.combiner.combining", 0, [](auto &task) {
|
||||
|
||||
fs::File output(outputPath, fs::File::Mode::Create);
|
||||
|
||||
if (!output.isValid()) {
|
||||
@ -1091,9 +1087,7 @@ namespace hex::plugin::builtin {
|
||||
}
|
||||
|
||||
void drawFileTools() {
|
||||
|
||||
if (ImGui::BeginTabBar("file_tools_tabs")) {
|
||||
|
||||
if (ImGui::BeginTabItem("hex.builtin.tools.file_tools.shredder"_lang)) {
|
||||
drawFileToolShredder();
|
||||
ImGui::EndTabItem();
|
||||
@ -1366,13 +1360,9 @@ namespace hex::plugin::builtin {
|
||||
ImGui::PopStyleColor();
|
||||
|
||||
ImGui::PopStyleVar();
|
||||
|
||||
}
|
||||
ImGui::EndChild();
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void registerToolEntries() {
|
||||
|
@ -23,7 +23,6 @@ namespace hex::plugin::builtin {
|
||||
static bool s_selectableFileMultiple;
|
||||
|
||||
static void drawGlobalPopups() {
|
||||
|
||||
// "Are you sure you want to exit?" Popup
|
||||
if (ImGui::BeginPopupModal("hex.builtin.popup.exit_application.title"_lang, nullptr, ImGuiWindowFlags_AlwaysAutoResize)) {
|
||||
ImGui::NewLine();
|
||||
@ -145,9 +144,7 @@ namespace hex::plugin::builtin {
|
||||
bool opened = true;
|
||||
ImGui::SetNextWindowPos(ImGui::GetMainViewport()->GetCenter(), ImGuiCond_Appearing, ImVec2(0.5F, 0.5F));
|
||||
if (ImGui::BeginPopupModal("hex.builtin.common.choose_file"_lang, &opened, ImGuiWindowFlags_AlwaysAutoResize)) {
|
||||
|
||||
if (ImGui::BeginListBox("##files", scaled(ImVec2(500, 400)))) {
|
||||
|
||||
u32 index = 0;
|
||||
for (auto &path : s_selectableFiles) {
|
||||
ImGui::PushID(index);
|
||||
@ -164,11 +161,9 @@ namespace hex::plugin::builtin {
|
||||
s_selectableFileIndices.insert(index);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ImGui::PopID();
|
||||
|
||||
index++;
|
||||
}
|
||||
|
||||
@ -245,7 +240,6 @@ namespace hex::plugin::builtin {
|
||||
}
|
||||
|
||||
void addFooterItems() {
|
||||
|
||||
if (hex::isProcessElevated()) {
|
||||
ContentRegistry::Interface::addFooterItem([] {
|
||||
ImGui::TextUnformatted(ICON_VS_SHIELD);
|
||||
@ -436,7 +430,6 @@ namespace hex::plugin::builtin {
|
||||
}
|
||||
ImGui::EndDisabled();
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
void handleBorderlessWindowMode() {
|
||||
|
@ -491,7 +491,6 @@ namespace hex::plugin::builtin {
|
||||
}
|
||||
|
||||
if (ImGui::BeginListBox("##patterns_accept", ImVec2(-FLT_MIN, 0))) {
|
||||
|
||||
u32 index = 0;
|
||||
for (auto &path : this->m_possiblePatternFiles) {
|
||||
if (ImGui::Selectable(hex::toUTF8String(path.filename()).c_str(), index == this->m_selectedPatternFile))
|
||||
@ -572,7 +571,6 @@ namespace hex::plugin::builtin {
|
||||
if (ImGui::GetIO().KeyShift) {
|
||||
ImGui::Indent();
|
||||
if (ImGui::BeginTable("##extra_info", 2, ImGuiTableFlags_RowBg | ImGuiTableFlags_BordersInnerV | ImGuiTableFlags_NoClip)) {
|
||||
|
||||
ImGui::TableNextRow();
|
||||
ImGui::TableNextColumn();
|
||||
|
||||
@ -853,7 +851,6 @@ namespace hex::plugin::builtin {
|
||||
auto provider = ImHexApi::Provider::get();
|
||||
|
||||
if (ImGui::MenuItem("hex.builtin.view.pattern_editor.menu.file.load_pattern"_lang, nullptr, false, providerValid)) {
|
||||
|
||||
std::vector<std::fs::path> paths;
|
||||
|
||||
for (const auto &imhexPath : fs::getDefaultPaths(fs::ImHexPath::Patterns)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user