Skip to content

Commit

Permalink
style: Restore unused variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
GeckoEidechse committed Mar 2, 2025
1 parent 5cab90a commit fffa239
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src-vue/src/components/LocalModCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default defineComponent({
},
async deleteMod(mod: NorthstarMod) {
await invoke("delete_northstar_mod", { gameInstall: this.$store.state.game_install, nsmodName: mod.name })
.then(() => {
.then((_message) => {
// Just a visual indicator that it worked
showNotification(this.$t('mods.local.success_deleting', { modName: mod.name }));
})
Expand Down
2 changes: 1 addition & 1 deletion src-vue/src/plugins/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export const store = createStore<FlightCoreStore>({
},
async launchGameSteam(state: any, launch_options: NorthstarLaunchOptions = { launch_via_steam: true, bypass_checks: false}) {
await invoke("launch_northstar", { gameInstall: state.game_install, launchOptions: launch_options })
.then(() => {
.then((_message) => {
showNotification('Success');
})
.catch((error) => {
Expand Down
6 changes: 3 additions & 3 deletions src-vue/src/views/DeveloperView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export default defineComponent({
let install_northstar_result = invoke("install_northstar_wrapper", { gameInstall: this.$store.state.game_install, northstarPackageName: this.selected_ns_version.value.package, versionNumber: this.selected_ns_version.value.version });
await install_northstar_result
.then(() => {
.then((_message) => {
// Send notification
showNotification(this.$t('generic.done'), this.$t('settings.repair.window.reinstall_success'));
this.$store.commit('checkNorthstarUpdates');
Expand All @@ -319,12 +319,12 @@ export default defineComponent({
async installNSProton() {
showNotification(`Started NSProton install`);
await invoke("install_northstar_proton_wrapper")
.then(() => { showNotification(`Done`); })
.then((_message) => { showNotification(`Done`); })
.catch((error) => { showNotification(`Error`, error, "error"); })
},
async uninstallNSProton() {
await invoke("uninstall_northstar_proton_wrapper")
.then(() => { showNotification(`Done`); })
.then((_message) => { showNotification(`Done`); })
.catch((error) => { showNotification(`Error`, error, "error"); })
},
async getLocalNSProtonVersion() {
Expand Down
6 changes: 3 additions & 3 deletions src-vue/src/views/SettingsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ export default defineComponent({
},
async openRepairWindow() {
await invoke("open_repair_window")
.then(() => { })
.then((_message) => { })
.catch((error) => {
showErrorNotification(error);
});
Expand Down Expand Up @@ -314,7 +314,7 @@ export default defineComponent({
gameInstall: store.state.game_install,
oldProfile: old_profile,
newProfile: new_profile
}).then(async () => {
}).then(async (_message) => {
store.commit('fetchProfiles');
showNotification('Success');
}).catch((error) => {
Expand All @@ -327,7 +327,7 @@ export default defineComponent({
await invoke("delete_profile", {
gameInstall: store.state.game_install,
profile: profile,
}).then(async () => {
}).then(async (_message) => {
if (profile == store.state.game_install.profile)
{
// trying to delete the active profile, lets switch to the default profile
Expand Down
2 changes: 1 addition & 1 deletion src-vue/src/views/mods/LocalModsView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default defineComponent({
methods: {
async disableAllModsButCore() {
await invoke("disable_all_but_core", { gameInstall: this.$store.state.game_install })
.then(() => {
.then((_message) => {
showNotification(this.$t('generic.success'), this.$t('settings.repair.window.disable_all_but_core_success'));
this.$store.commit('loadInstalledMods');
})
Expand Down

0 comments on commit fffa239

Please sign in to comment.