Commit 610fda12 authored by Adrien Plazas's avatar Adrien Plazas
Browse files

header-bar: Ensure buttons are shown only in the right mode

parent 350236c3
......@@ -197,16 +197,19 @@ namespace Usage
public void show_storage_back_button(bool show)
{
show &= mode == HeaderBarMode.STORAGE;
storage_back_button.visible = show;
}
public void show_storage_rescan_button(bool show)
{
show &= mode == HeaderBarMode.STORAGE;
storage_rescan_button.visible = show;
}
public void show_storage_select_button(bool show)
{
show &= mode == HeaderBarMode.STORAGE;
storage_select_button.visible = false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment