include commit hash in SupportView

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2024-11-21 16:13:36 -05:00
parent 679a5afdeb
commit 308717cabf
3 changed files with 12 additions and 1 deletions

View File

@@ -29,7 +29,7 @@ impl Support {
static MAX_LOG_LINES: usize = 500;
static SUPPORT_EMAIL: &str = "support@damus.io";
static EMAIL_TEMPLATE: &str = "Describe the bug you have encountered:\n<-- your statement here -->\n\n===== Paste your log below =====\n\n";
static EMAIL_TEMPLATE: &str = concat!("Commit hash: ", env!("GIT_COMMIT_HASH"), "\n\nDescribe the bug you have encountered:\n<-- your statement here -->\n\n===== Paste your log below =====\n\n");
impl Support {
pub fn refresh(&mut self) {

View File

@@ -75,6 +75,7 @@ impl<'a> SupportView<'a> {
.color(egui::Color32::RED),
);
}
ui.label(format!("Commit hash: {}", env!("GIT_COMMIT_HASH")));
});
}
}