Skip to content

Commit

Permalink
Rename TroubleshootingModal -> PluginTroubleshootingModal
Browse files Browse the repository at this point in the history
  • Loading branch information
4Source committed Mar 18, 2024
1 parent db9b77c commit 6c28833
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import VarePlugin from 'src/main';
import { PluginInfo } from 'src/settings/SettingsInterface';
import { Release, fetchManifest, fetchReleases, repositoryRegEx } from 'src/util/GitHub';

export class TroubleshootingModal extends Modal {
export class PluginTroubleshootingModal extends Modal {
plugin: VarePlugin;
pluginInfo: PluginInfo;
onSubmit: (result: PluginInfo) => void;
Expand Down
4 changes: 2 additions & 2 deletions src/settings/SettingsTab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import VarePlugin from 'src/main';
import { PluginData, PluginInfo } from './SettingsInterface';
import { PluginDataModal } from 'src/modals/PluginDataModal';
import { fetchCommmunityPluginList, fetchManifest, fetchReleases } from 'src/util/GitHub';
import { TroubleshootingModal } from 'src/modals/TroubleshootingModal';
import { PluginTroubleshootingModal } from 'src/modals/PluginTroubleshootingModal';

export class VareSettingTab extends PluginSettingTab {
plugin: VarePlugin;
Expand Down Expand Up @@ -166,7 +166,7 @@ export class VareSettingTab extends PluginSettingTab {
.setTooltip('Troubleshoot plugin.')
.setWarning()
.onClick(() => {
new TroubleshootingModal(this.plugin, plugin, result => {
new PluginTroubleshootingModal(this.plugin, plugin, result => {
this.pluginsList.every((value, index, array) => {
if (value.id === result.id) {
array[index] = result;
Expand Down

0 comments on commit 6c28833

Please sign in to comment.