0x004C1602
| 117 | |
| 118 | // 0x004C1602 |
| 119 | Window* open() |
| 120 | { |
| 121 | Window* window = WindowManager::bringToFront(WindowType::musicSelection, 0); |
| 122 | if (window != nullptr) |
| 123 | { |
| 124 | return window; |
| 125 | } |
| 126 | |
| 127 | window = WindowManager::createWindow( |
| 128 | WindowType::musicSelection, |
| 129 | kWindowSizeDefault, |
| 130 | WindowFlags::resizable, |
| 131 | getEvents()); |
| 132 | |
| 133 | window->setWidgets(_widgets); |
| 134 | window->initScrollWidgets(); |
| 135 | |
| 136 | auto interface = ObjectManager::get<InterfaceSkinObject>(); |
| 137 | window->setColour(WindowColour::primary, interface->windowTitlebarColour); |
| 138 | window->setColour(WindowColour::secondary, interface->windowOptionsColour); |
| 139 | |
| 140 | window->rowCount = Jukebox::kNumMusicTracks; |
| 141 | window->rowHover = -1; |
| 142 | |
| 143 | setSortMode(*window, Jukebox::MusicSortMode::original); |
| 144 | |
| 145 | // Set status bar text |
| 146 | uint16_t numTracksSelected = std::ranges::count(Config::get().audio.customJukebox, true); |
| 147 | updateStatusBar(*window, numTracksSelected); |
| 148 | |
| 149 | return window; |
| 150 | } |
| 151 | |
| 152 | static void onResize(Ui::Window& self) |
| 153 | { |
nothing calls this directly
no test coverage detected