Skip to content

Commit 50d210d

Browse files
committed
Move clean state checksums to constants.rs
1 parent c2b2b19 commit 50d210d

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ impl eframe::App for App {
188188
ui.horizontal(|ui| {
189189
ui.heading(t!("Hook"));
190190
// cheksums without lozalization files
191-
if self.hook_checksum != 4282505490 || self.dict_checksum != 1591420153 {
191+
if self.hook_checksum != NO_HOOK_CHECKSUM || self.dict_checksum != NO_DICT_CHECKSUM {
192192
ui.with_layout(Layout::right_to_left(Align::TOP), |ui| {
193193
let button = ui
194194
.add_sized([20., 20.], Button::new("🗑"))

src/constants.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ pub const COLOR_UP_TO_DATE: Color32 = Color32::from_rgb(67, 160, 71);
3434
pub const COLOR_UPDATE_AVAILABLE: Color32 = Color32::from_rgb(230, 184, 0);
3535
pub const COLOR_CHOOSE_LANGUAGE: Color32 = Color32::from_rgb(230, 184, 0);
3636
pub const COLOR_ERROR: Color32 = Color32::from_rgb(211, 47, 47);
37+
38+
pub const NO_HOOK_CHECKSUM: u32 = 4282505490;
39+
pub const NO_DICT_CHECKSUM: u32 = 1591420153;

0 commit comments

Comments
 (0)