merge stable version #2
|
@ -11,10 +11,14 @@ use std::path::Path;
|
|||
|
||||
use crate::view::properties::Setters;
|
||||
|
||||
#[cfg(debug_assertions)]
|
||||
const PATH: &str = "./src/view/resources/logo.png";
|
||||
|
||||
#[cfg(not(debug_assertions))]
|
||||
const PATH: &str = "./resources/logo.png";
|
||||
|
||||
pub fn open_about_dialogue(_action: &SimpleAction, _var: Option<&Variant>) {
|
||||
let logo = Image::from_file(Path::new("./src/view/resources/logo.png"))
|
||||
.paintable()
|
||||
.unwrap();
|
||||
let logo = Image::from_file(Path::new(PATH)).paintable().unwrap();
|
||||
|
||||
AboutDialog::builder()
|
||||
.authors(vec!["Сагиев А.Д.", "Ефимов И.П."])
|
||||
|
|
Loading…
Reference in New Issue