[glass] Plot: Set reasonable default window size (#3261)

This commit is contained in:
Peter Johnson
2021-03-21 10:50:41 -07:00
committed by GitHub
parent d71eb2cf39
commit c8521a3c33

View File

@@ -992,7 +992,9 @@ void PlotProvider::DisplayMenu() {
char id[32];
std::snprintf(id, sizeof(id), "Plot <%d>",
static_cast<int>(m_windows.size()));
AddWindow(id, std::make_unique<PlotView>(this));
if (auto win = AddWindow(id, std::make_unique<PlotView>(this))) {
win->SetDefaultSize(700, 400);
}
}
}