mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 21:48:36 +00:00
Use only file names in example window titles
This commit is contained in:
parent
cebe02cb11
commit
09f4ad6cf0
@ -15,6 +15,10 @@ pub struct System {
|
||||
}
|
||||
|
||||
pub fn init(title: &str) -> System {
|
||||
let title = match title.rfind('/') {
|
||||
Some(idx) => title.split_at(idx + 1).1,
|
||||
None => title,
|
||||
};
|
||||
let events_loop = glutin::EventsLoop::new();
|
||||
let context = glutin::ContextBuilder::new().with_vsync(true);
|
||||
let builder = glutin::WindowBuilder::new()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user