Skip to content

Commit

Permalink
Add tooltips
Browse files Browse the repository at this point in the history
  • Loading branch information
sop committed Sep 4, 2020
1 parent 54c70a8 commit f850b38
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions src/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,12 @@ impl MainWindow {
) };
set_window_font(hwnd, &self.caption_font);

// hold more tooltip
self.create_control_tooltip(
Control::HoldModeCombo,
wcstr!("Console window behaviour when the script exits."),
);

// interactive shell checkbox
#[rustfmt::skip]
unsafe { CreateWindowExW(
Expand All @@ -339,8 +345,8 @@ impl MainWindow {
self.create_control_tooltip(
Control::InteractiveCheckbox,
wcstr!(
"Whether to run bash as an interactive shell, \
thus executing profile scripts (eg. ~/.bashrc)."
"Run bash as an interactive shell and execute \
profile scripts (eg. ~/.bashrc)."
),
);

Expand Down Expand Up @@ -389,6 +395,12 @@ impl MainWindow {
) };
set_window_font(hwnd, &self.caption_font);

// distro tooltip
self.create_control_tooltip(
Control::DistroCombo,
wcstr!("WSL distribution on which to run the script."),
);

// save button
#[rustfmt::skip]
let hwnd = unsafe { CreateWindowExW(
Expand Down Expand Up @@ -439,7 +451,7 @@ impl MainWindow {
.and_then(|s| s.into_string().ok())
.unwrap_or_default();
let s = wcstring!(format!(
".{} handler found from another directory!\n\
".{} handler found in another directory!\n\
Did you move {}?",
ext, exe
));
Expand Down

0 comments on commit f850b38

Please sign in to comment.