From 4bf2cca12cadff0e986d1b1df2fbdeb921d28c85 Mon Sep 17 00:00:00 2001 From: daa84 Date: Mon, 8 Jan 2018 16:49:23 +0300 Subject: [PATCH] Add minimum supported version to about dialog --- src/ui.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ui.rs b/src/ui.rs index 98fe539..aeda3e7 100644 --- a/src/ui.rs +++ b/src/ui.rs @@ -11,7 +11,7 @@ use gio::prelude::*; use gio::{Menu, MenuExt, MenuItem, SimpleAction}; use settings::Settings; -use shell::{Shell, ShellOptions}; +use shell::{self, Shell, ShellOptions}; use shell_dlg; use project::Projects; use plug_manager; @@ -233,6 +233,13 @@ fn on_help_about(comps: &Components) { about.set_version(env!("CARGO_PKG_VERSION")); about.set_logo_icon_name("org.daa.NeovimGtk"); about.set_authors(&[env!("CARGO_PKG_AUTHORS")]); + about.set_comments( + format!( + "Build on top of neovim\n\ + Minimum supported neovim version: {}", + shell::MINIMUM_SUPPORTED_NVIM_VERSION + ).as_str(), + ); about.connect_response(|about, _| about.destroy()); about.show();