Skip to content

Commit

Permalink
added link to issue #60 in GUI (general settings tab)
Browse files Browse the repository at this point in the history
  • Loading branch information
GyulyVGC committed Dec 23, 2023
1 parent a85b776 commit 3136b3b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions resources/fonts/full/subset_characters.txt
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ z
۰
۳
Expand Down
Binary file modified resources/fonts/subset/sarasa-mono-sc-bold.subset.ttf
Binary file not shown.
Binary file modified resources/fonts/subset/sarasa-mono-sc-regular.subset.ttf
Binary file not shown.
4 changes: 3 additions & 1 deletion src/gui/pages/settings_general_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ use crate::translations::translations_2::country_translation;
use crate::translations::translations_3::{
mmdb_files_translation, params_not_editable_translation, zoom_translation,
};
use crate::utils::types::web_page::WebPage;
use crate::{Language, RunningPage, Sniffer, StyleType};

pub fn settings_general_page(sniffer: &Sniffer) -> Container<Message, Renderer<StyleType>> {
Expand Down Expand Up @@ -126,10 +127,11 @@ fn language_picklist(
.horizontal_alignment(Horizontal::Center)
.size(15),
)
.on_press(Message::OpenWebPage(WebPage::IssueLanguages))
.padding(2)
.height(Fixed(20.0))
.width(Fixed(20.0)),
" The selected language \nis not fully updated to version 1.3",
"The selected language is not\nfully updated to version 1.3",
Position::FollowCursor,
)
.font(font)
Expand Down
3 changes: 3 additions & 0 deletions src/utils/types/web_page.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ pub enum WebPage {
WebsiteDownload,
/// My sponsor page
Sponsor,
/// Sniffnet issue #60 on GitHub
IssueLanguages,
}

impl WebPage {
Expand All @@ -18,6 +20,7 @@ impl WebPage {
WebPage::Website => "https://www.sniffnet.net",
WebPage::Sponsor => "https://github.com/sponsors/GyulyVGC",
WebPage::WebsiteDownload => "https://www.sniffnet.net/download/",
WebPage::IssueLanguages => "https://github.com/GyulyVGC/sniffnet/issues/60",
}
}
}

0 comments on commit 3136b3b

Please sign in to comment.