mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 08:39:22 +00:00
HexEditor: Clarify in InputBox which offset (Hex/Dec) you're Going To
This commit is contained in:
parent
14cdd3fdc1
commit
7f15604f72
Notes:
sideshowbarker
2024-07-19 10:30:10 +09:00
Author: https://github.com/JamiKettunen
Commit: 7f15604f72
Pull-request: https://github.com/SerenityOS/serenity/pull/976
Reviewed-by: https://github.com/awesomekling
1 changed files with 2 additions and 2 deletions
|
@ -128,7 +128,7 @@ HexEditorWidget::HexEditorWidget()
|
|||
}
|
||||
|
||||
m_goto_decimal_offset_action = GAction::create("Go To Offset (Decimal)...", GraphicsBitmap::load_from_file("/res/icons/16x16/go-forward.png"), [this](const GAction&) {
|
||||
auto input_box = GInputBox::construct("Enter offset:", "Go To", this);
|
||||
auto input_box = GInputBox::construct("Enter Decimal offset:", "Go To", this);
|
||||
if (input_box->exec() == GInputBox::ExecOK && !input_box->text_value().is_empty()) {
|
||||
auto valid = false;
|
||||
auto new_offset = input_box->text_value().to_int(valid);
|
||||
|
@ -139,7 +139,7 @@ HexEditorWidget::HexEditorWidget()
|
|||
});
|
||||
|
||||
m_goto_hex_offset_action = GAction::create("Go To Offset (Hex)...", GraphicsBitmap::load_from_file("/res/icons/16x16/go-forward.png"), [this](const GAction&) {
|
||||
auto input_box = GInputBox::construct("Enter offset:", "Go To", this);
|
||||
auto input_box = GInputBox::construct("Enter Hex offset:", "Go To", this);
|
||||
if (input_box->exec() == GInputBox::ExecOK && !input_box->text_value().is_empty()) {
|
||||
auto new_offset = strtol(input_box->text_value().characters(), nullptr, 16);
|
||||
m_editor->set_position(new_offset);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue