mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:17:45 +00:00
HackStudio: Display warning when opening binary files
We now detect and display a warning when we can't render the text of an opened file. Closes #5062.
This commit is contained in:
parent
3cc7b00e24
commit
dee0c46c9b
5 changed files with 35 additions and 4 deletions
|
@ -39,6 +39,7 @@ class Editor;
|
|||
|
||||
class EditorWrapper : public GUI::Widget {
|
||||
C_OBJECT(EditorWrapper)
|
||||
|
||||
public:
|
||||
virtual ~EditorWrapper() override;
|
||||
|
||||
|
@ -51,6 +52,9 @@ public:
|
|||
void set_editor_has_focus(Badge<Editor>, bool);
|
||||
LanguageClient& language_client();
|
||||
|
||||
void set_mode_displayable();
|
||||
void set_mode_non_displayable();
|
||||
|
||||
private:
|
||||
EditorWrapper();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue