Rewrite diagnostics popup with new api
This commit is contained in:
@@ -113,16 +113,6 @@ extern std::vector<std::unique_ptr<Popup>> popups;
|
||||
extern std::vector<std::unique_ptr<TileBase>> floating_tiles;
|
||||
} // namespace layout
|
||||
|
||||
inline void close(Popup *handle) {
|
||||
std::erase_if(layout::popups,
|
||||
[handle](const auto &p) { return p.get() == handle; });
|
||||
}
|
||||
|
||||
inline void close(TileBase *handle) {
|
||||
std::erase_if(layout::floating_tiles,
|
||||
[handle](const auto &p) { return p.get() == handle; });
|
||||
}
|
||||
|
||||
void render();
|
||||
void handle_click(KeyEvent event);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user