mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:07:36 +00:00
Spreadsheet: Set Help window mode to Modeless in the constructor
And don't try to do it every time the Help button is clicked. This fixes a crash when clicking the Help button twice (setting window mode on an already visible window is not supported). This also fixes a situation where when opening the Help window with an action, we didn't set its mode to "Modeless".
This commit is contained in:
parent
059857d26f
commit
259228d8d2
2 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,6 @@ SpreadsheetWidget::SpreadsheetWidget(GUI::Window& parent_window, Vector<NonnullR
|
|||
auto docs = sheet_ptr->gather_documentation();
|
||||
auto help_window = HelpWindow::the(window());
|
||||
help_window->set_docs(move(docs));
|
||||
help_window->set_window_mode(GUI::WindowMode::Modeless);
|
||||
help_window->show();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue