mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-24 23:09:26 -05:00
Kludge fix for null parent() (#1477)
This commit is contained in:
parent
d7c961ea4f
commit
e5546159c5
@ -74,6 +74,9 @@ void GpsSimAppView::on_file_changed(const fs::path& new_file_path) {
|
|||||||
auto duration = ms_duration(file_size, transmitter_model.sampling_rate(), 2);
|
auto duration = ms_duration(file_size, transmitter_model.sampling_rate(), 2);
|
||||||
text_duration.set(to_string_time_ms(duration));
|
text_duration.set(to_string_time_ms(duration));
|
||||||
|
|
||||||
|
// TODO: fix in UI framework with 'try_focus()'?
|
||||||
|
// Hack around focus getting called by ctor before parent is set.
|
||||||
|
if (parent())
|
||||||
button_play.focus();
|
button_play.focus();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user