Skip to content

Commit

Permalink
lint/prettify
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaPiggy committed Jul 26, 2023
1 parent 98b96a4 commit 61477ca
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion owmods_cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use owmods_core::{
local::{LocalMod, UnsafeLocalMod},
remote::RemoteMod,
},
open::{open_readme, open_shortcut, open_github},
open::{open_github, open_readme, open_shortcut},
remove::{remove_failed_mod, remove_mod},
toggle::toggle_mod,
updates::update_all,
Expand Down
4 changes: 2 additions & 2 deletions owmods_gui/backend/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use owmods_core::{
file::{create_all_parents, get_app_path},
game::launch_game,
mods::{local::UnsafeLocalMod, remote::RemoteMod},
open::{open_readme, open_shortcut, open_github},
open::{open_github, open_readme, open_shortcut},
owml::OWMLConfig,
remove::{remove_failed_mod, remove_mod},
socket::{LogServer, SocketMessageType},
Expand Down Expand Up @@ -995,4 +995,4 @@ pub async fn open_mod_github(unique_name: &str, state: tauri::State<'_, State>)
let db = state.remote_db.read().await;
open_github(unique_name, &db)?;
Ok(())
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const RemoteModRow = memo(function RemoteModRow(props: RemoteModRowProps) {
const onGithub = useCallback(() => {
commands.openModGithub({ uniqueName: props.uniqueName }).catch(simpleOnError);
}, [props.uniqueName]);

const modActions = useMemo(
() => (
<RemoteModActions
Expand All @@ -71,7 +71,16 @@ const RemoteModRow = memo(function RemoteModRow(props: RemoteModRowProps) {
onGithub={onGithub}
/>
),
[busy, onInstall, onPrerelease, onReadme, onGithub, prereleaseLabel, props.uniqueName, hasPrerelease]
[
busy,
onInstall,
onPrerelease,
onReadme,
onGithub,
prereleaseLabel,
props.uniqueName,
hasPrerelease
]
);

return (
Expand Down

0 comments on commit 61477ca

Please sign in to comment.