bootmanager: Add a check whether loading is complete

This commit is contained in:
Morph 2020-11-17 00:33:38 -05:00
parent d6d1a8e02c
commit 51a7681957
2 changed files with 6 additions and 0 deletions

View file

@ -569,6 +569,10 @@ void GRenderWindow::CaptureScreenshot(u32 res_scale, const QString& screenshot_p
layout); layout);
} }
bool GRenderWindow::IsLoadingComplete() const {
return first_frame;
}
void GRenderWindow::OnMinimalClientAreaChangeRequest(std::pair<u32, u32> minimal_size) { void GRenderWindow::OnMinimalClientAreaChangeRequest(std::pair<u32, u32> minimal_size) {
setMinimumSize(minimal_size.first, minimal_size.second); setMinimumSize(minimal_size.first, minimal_size.second);
} }

View file

@ -162,6 +162,8 @@ public:
/// Destroy the previous run's child_widget which should also destroy the child_window /// Destroy the previous run's child_widget which should also destroy the child_window
void ReleaseRenderTarget(); void ReleaseRenderTarget();
bool IsLoadingComplete() const;
void CaptureScreenshot(u32 res_scale, const QString& screenshot_path); void CaptureScreenshot(u32 res_scale, const QString& screenshot_path);
std::pair<u32, u32> ScaleTouch(const QPointF& pos) const; std::pair<u32, u32> ScaleTouch(const QPointF& pos) const;