Skip to content

Commit

Permalink
Merge pull request #212 from Tormak9970/dev
Browse files Browse the repository at this point in the history
fix: fix legacy settings bug
  • Loading branch information
Tormak9970 authored Sep 16, 2024
2 parents a27c4c7 + eee3b5c commit ce65604
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/lib/controllers/PluginController.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function showDiscardConfirm(okCallback: () => Promise<void>, onCancel: () => Pro
>
Are you sure you want to discard the previous settings? This can't be undone.
</DestructiveModal>
)
);
}

/**
Expand Down Expand Up @@ -87,6 +87,12 @@ export class PluginController {
// @ts-ignore
return new Promise(async (resolve, reject) => {
const hadLegacySettings = await PythonInterop.setActiveSteamId(getCurrentUserId());

if (hadLegacySettings instanceof Error) {
LogController.raiseError('TabMaster encountered a problem during initialization process.', `PythonInterop.setActiveSteamId returned error: "${hadLegacySettings.message}"`);
resolve();
return;
}
LogController.log(hadLegacySettings ? "Detected Legacy Settings." : "No Legacy Settings found.");

if (hadLegacySettings) {
Expand Down

0 comments on commit ce65604

Please sign in to comment.