1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:58:12 +00:00

Spreadsheet: Treat an empty format string as "default"

This commit is contained in:
AnotherTest 2020-09-25 16:37:25 +03:30 committed by Andreas Kling
parent e250591ff3
commit a2efff9287
2 changed files with 3 additions and 3 deletions

View file

@ -198,9 +198,9 @@ void CellTypeDialog::setup_tabs(GUI::TabWidget& tabs, const Vector<Position>& po
{
auto& checkbox = right_side.add<GUI::CheckBox>("Override display format");
auto& editor = right_side.add<GUI::TextEditor>();
checkbox.set_checked(!m_format.is_null());
checkbox.set_checked(!m_format.is_empty());
editor.set_should_hide_unnecessary_scrollbars(true);
editor.set_enabled(!m_format.is_null());
editor.set_enabled(!m_format.is_empty());
editor.set_text(m_format);
checkbox.set_preferred_size(0, 20);