Improved windows titles management

Display filename (no path) before APP_NAME, clean APP_TITLE when no file, bugs fixed.
This commit is contained in:
Bruno
2021-07-30 16:08:00 +02:00
parent d2a576c99c
commit 63b043dc4b
6 changed files with 21 additions and 14 deletions

View File

@@ -225,10 +225,10 @@ struct Application
current_workspace= 1;
brush = glm::vec3(0.5f, 0.1f, 0.f);
windows = std::vector<WindowConfig>(3);
windows[0].name = APP_NAME APP_TITLE;
windows[0].name = APP_TITLE;
windows[0].w = 1600;
windows[0].h = 900;
windows[1].name = APP_NAME " -- Output";
windows[1].name = "Output " APP_TITLE;
}
};