Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
  • Loading branch information
guylamar2006 authored Nov 7, 2024
1 parent 6bc3908 commit 3bc7b00
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/ui/ui_disconnect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ use crate::sync::disconnect_shortcut;
use crate::sync::IsBoilRShortcut;

#[derive(Default)]
pub struct DiconnectState {
pub struct DisconnectState {
pub connected_shortcuts: Option<Result<Vec<ShortcutInfo>, String>>,
}

impl MyEguiApp {
pub fn render_disconnect(&mut self, ui: &mut egui::Ui) {
let steam_settings = self.settings.steam.clone();
let users_info = self
.disconect_state
.disconnect_state

Check failure

Code scanning / clippy

no field disconnect_state on type &mut ui::uiapp::MyEguiApp Error

no field disconnect\_state on type &mut ui::uiapp::MyEguiApp
.connected_shortcuts
.get_or_insert_with(|| {
let users = get_shortcuts_paths(&steam_settings)
Expand All @@ -34,11 +34,11 @@ impl MyEguiApp {
})
});

ui.heading("Add a disconnected Shortcuts");
ui.heading("Add a disconnected Shortcut");
ui.label("In this section you can add a shortcut that BoilR is not in control of.");
ui.label("This prevents BoilR from deleting or updating a shortcut it orignally added.");
ui.label("This prevents BoilR from deleting or updating a shortcut it originally added.");
ui.label(
"This is useful if you want to manully edit a shortcut after BoilR has imported it.",
"This is useful if you want to manually edit a shortcut after BoilR has imported it.",
);

ui.add_space(super::SECTION_SPACING);
Expand All @@ -56,7 +56,7 @@ impl MyEguiApp {

for user in users.iter_mut() {
if has_multiple_users {
ui.heading(&user.path.to_string_lossy().to_string());
ui.heading(user.path.to_string_lossy().to_string());
}
for shortcut in user.shortcuts.iter() {
if shortcut.is_boilr_shortcut()
Expand All @@ -69,7 +69,7 @@ impl MyEguiApp {
}
});
if redraw != 0 {
self.disconect_state.connected_shortcuts = None;
self.disconnect_state.connected_shortcuts = None;

Check failure

Code scanning / clippy

no field disconnect_state on type &mut ui::uiapp::MyEguiApp Error

no field disconnect\_state on type &mut ui::uiapp::MyEguiApp
self.settings.blacklisted_games.push(redraw);
}
}
Expand Down

0 comments on commit 3bc7b00

Please sign in to comment.