Skip to content

Commit

Permalink
Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Reddiepoint committed Feb 21, 2024
1 parent c1d1ad1 commit ad01628
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "MultiUp-Direct"
version = "3.2.0-beta.2"
version = "3.2.0-beta.3"
authors = ["Redpoint"]
edition = "2021"

Expand Down
5 changes: 1 addition & 4 deletions src/modules/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,6 @@ impl MultiUpDirect {
ui.separator();

if ui.button("Check for updates").clicked() {
let (tx, rx) = crossbeam_channel::unbounded();
// (self.help_ui.update_sender, self.help_ui.update_receiver) = (Some(tx), Some(rx));
self.help_ui.update_channels(tx, rx);
self.help_ui.show_update = true;
ui.close_menu();
}
Expand All @@ -94,7 +91,7 @@ impl MultiUpDirect {

ExtractUI::display_error_log(&mut self.extract_ui, ctx);
DebridUI::display_error_log(&mut self.debrid_ui, ctx);
self.help_ui.show_help(ctx);
self.help_ui.show_help_window(ctx);
self.help_ui.show_update_window(ctx);
});
}
Expand Down
4 changes: 2 additions & 2 deletions src/modules/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ const HOMEPAGE: &str = "https://cs.rin.ru/forum/viewtopic.php?f=14&p=2822500#p28
const DOCUMENTATION: &str = "https://reddiepoint.github.io/RedAlt-SteamUp-Documentation/using-the-creator.html";

impl HelpUI {
pub fn show_help(ctx: &Context, help_ui: &mut HelpUI) {
Window::new("Help").open(&mut help_ui.show_help).show(ctx, |ui| ScrollArea::vertical().min_scrolled_height(ui.available_height()).id_source("Help").show(ui, |ui| {
pub fn show_help_window(&mut self, ctx: &Context) {
Window::new("Help").open(&mut self.show_help).show(ctx, |ui| ScrollArea::vertical().min_scrolled_height(ui.available_height()).id_source("Help").show(ui, |ui| {
ui.horizontal(|ui| {
ui.hyperlink_to("Tips & Tricks and Extra Information", DOCUMENTATION);
ui.label("|");
Expand Down
1 change: 0 additions & 1 deletion src/modules/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ mod help;
mod links;
pub mod app;
mod upload;
mod help;

0 comments on commit ad01628

Please sign in to comment.