From ea87c1546b98265332239ccf6ff7eb45d7549ee2 Mon Sep 17 00:00:00 2001 From: David Hewitt <1939362+davidhewitt@users.noreply.github.com> Date: Thu, 7 Mar 2019 20:37:11 +0000 Subject: Add dynamic title support for Window --- src/window.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/window.rs') diff --git a/src/window.rs b/src/window.rs index cdc3bdc7..cceffcab 100644 --- a/src/window.rs +++ b/src/window.rs @@ -224,11 +224,8 @@ impl Window { /// Set the window title #[inline] - pub fn set_title(&self, _title: &str) { - // Because winpty doesn't know anything about OSC escapes this gets set to an empty - // string on windows - #[cfg(not(windows))] - self.window.set_title(_title); + pub fn set_title(&self, title: &str) { + self.window.set_title(title); } #[inline] -- cgit