diff --git a/examples/target-disk-mode/app/main.rb b/examples/target-disk-mode/app/main.rb index a7f40525..635be771 100644 --- a/examples/target-disk-mode/app/main.rb +++ b/examples/target-disk-mode/app/main.rb @@ -1,3 +1,16 @@ +class LVGUI::BaseWindow + attr_reader :header_bar + + def on_initialization_finished() + @header_bar.refresh_sizes() + end + + def on_header_init() + @header_bar = MobileNixOS::EnhancedHeaderBar.new(@screen) + @header_bar.set_label("Target Disk Mode") + end +end + GUI::MainWindow.instance.present LVGUI.main_loop