1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 16:47:44 +00:00

HexEditor: Share the code for updating the content size

And make setting the bytes_per_row a no-op if it's the same value.
This commit is contained in:
Sam Atkins 2024-02-05 11:57:40 +00:00 committed by Sam Atkins
parent db23d0f464
commit d3012f2df1
2 changed files with 12 additions and 6 deletions

View file

@ -125,7 +125,8 @@ private:
ErrorOr<void> hex_mode_keydown_event(GUI::KeyEvent&);
ErrorOr<void> text_mode_keydown_event(GUI::KeyEvent&);
void set_content_length(size_t); // I might make this public if I add fetching data on demand.
void set_content_length(size_t);
void update_content_size();
void update_status();
void did_change();
ErrorOr<void> did_complete_action(size_t position, u8 old_value, u8 new_value);