mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 08:47:34 +00:00
FileManager: Don't use bitwise OR operators on booleans
This commit is contained in:
parent
ec02d58b5b
commit
4ef8bf53ba
1 changed files with 2 additions and 2 deletions
|
@ -671,7 +671,7 @@ ErrorOr<int> run_in_windowed_mode(String const& initial_location, String const&
|
||||||
layout_location_action->set_checked(show_location);
|
layout_location_action->set_checked(show_location);
|
||||||
breadcrumb_toolbar.set_visible(show_location);
|
breadcrumb_toolbar.set_visible(show_location);
|
||||||
|
|
||||||
toolbar_container.set_visible(show_location | show_toolbar);
|
toolbar_container.set_visible(show_location || show_toolbar);
|
||||||
|
|
||||||
layout_statusbar_action = GUI::Action::create_checkable("&Status Bar", [&](auto& action) {
|
layout_statusbar_action = GUI::Action::create_checkable("&Status Bar", [&](auto& action) {
|
||||||
action.is_checked() ? statusbar.set_visible(true) : statusbar.set_visible(false);
|
action.is_checked() ? statusbar.set_visible(true) : statusbar.set_visible(false);
|
||||||
|
@ -694,7 +694,7 @@ ErrorOr<int> run_in_windowed_mode(String const& initial_location, String const&
|
||||||
location_textbox.on_focusout = [&] {
|
location_textbox.on_focusout = [&] {
|
||||||
if (show_location)
|
if (show_location)
|
||||||
breadcrumb_toolbar.set_visible(true);
|
breadcrumb_toolbar.set_visible(true);
|
||||||
if (!(show_location | show_toolbar))
|
if (!(show_location || show_toolbar))
|
||||||
toolbar_container.set_visible(false);
|
toolbar_container.set_visible(false);
|
||||||
|
|
||||||
location_toolbar.set_visible(false);
|
location_toolbar.set_visible(false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue