1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:07:35 +00:00

Chess: Stop trying to read non-existent window-size config value

Nobody ever sets this, and it doesn't seem especially useful, so let's
remove it.
This commit is contained in:
Sam Atkins 2023-02-01 16:33:29 +00:00 committed by Andreas Kling
parent d3953c6b73
commit 1cb6494852

View file

@ -42,11 +42,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
TRY(Core::System::unveil("/tmp/session/%sid/portal/filesystemaccess", "rw"));
TRY(Core::System::unveil(nullptr, nullptr));
auto size = Config::read_i32("Chess"sv, "Display"sv, "size"sv, 512);
window->set_title("Chess");
window->set_base_size({ 4, 4 });
window->set_size_increment({ 8, 8 });
window->resize(size - 4, size - 4);
window->resize(508, 508);
window->set_icon(app_icon.bitmap_for_size(16));