mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:47:46 +00:00
SQLStudio: Simplify action handling a bit
Most actions do not need to care about whether there is an open editor tab, as we can (and should) disable those actions when there isn't an open tab. We can also hide the verify_cast handling inside a helper function.
This commit is contained in:
parent
b8e4ca3b0f
commit
74cd0a0c82
2 changed files with 89 additions and 93 deletions
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Dylan Katz <dykatz@uw.edu>
|
||||
* Copyright (c) 2022, Tim Flynn <trflynn89@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -31,6 +32,8 @@ public:
|
|||
private:
|
||||
MainWidget();
|
||||
|
||||
ScriptEditor* active_editor();
|
||||
|
||||
void update_title();
|
||||
void on_editor_change();
|
||||
void update_statusbar(ScriptEditor*);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue