mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-25 20:38:36 +00:00
Use MAIN_SEPARATOR to make consistent behavior.
This commit is contained in:
parent
07cc96363f
commit
02b8c13174
@ -6,6 +6,7 @@ use glium::{Display, Surface};
|
|||||||
use imgui::{Context, FontConfig, FontGlyphRanges, FontSource, Ui};
|
use imgui::{Context, FontConfig, FontGlyphRanges, FontSource, Ui};
|
||||||
use imgui_glium_renderer::Renderer;
|
use imgui_glium_renderer::Renderer;
|
||||||
use imgui_winit_support::{HiDpiMode, WinitPlatform};
|
use imgui_winit_support::{HiDpiMode, WinitPlatform};
|
||||||
|
use std::path::MAIN_SEPARATOR;
|
||||||
use std::time::Instant;
|
use std::time::Instant;
|
||||||
|
|
||||||
mod clipboard;
|
mod clipboard;
|
||||||
@ -20,7 +21,7 @@ pub struct System {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn init(title: &str) -> System {
|
pub fn init(title: &str) -> System {
|
||||||
let title = match title.rfind('/') {
|
let title = match title.rfind(MAIN_SEPARATOR) {
|
||||||
Some(idx) => title.split_at(idx + 1).1,
|
Some(idx) => title.split_at(idx + 1).1,
|
||||||
None => title,
|
None => title,
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user