MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / on_tab_close

Method on_tab_close

src/Screens/DesktopDrawingProgramScreen.cpp:106–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104}
105
106void DesktopDrawingProgramScreen::on_tab_close() {
107 if(main.worlds.empty())
108 main.create_new_tab({
109 .isClient = false
110 });
111 else if(!main.world)
112 main.switch_to_tab(0);
113}
114
115float DesktopDrawingProgramScreen::calculate_gui_scale() {
116 Vector2f maxWindowSizeBeforeForcedFit = main.g.final_gui_scale_not_fit() * Vector2f{700.0f, 700.0f};

Callers

nothing calls this directly

Calls 3

create_new_tabMethod · 0.80
switch_to_tabMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected