diff --git a/src/main/main.ts b/src/main/main.ts index 83ff353..baae203 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -134,7 +134,9 @@ const createWindow = async () => { }); // Remove this if your app does not use auto updates - autoUpdater.checkForUpdates(); + if (!isDevelopment) { + autoUpdater.checkForUpdates(); + } // eslint-disable-next-line new App(); }; diff --git a/src/model/ModCollection.ts b/src/model/ModCollection.ts index 5294fb6..791a322 100644 --- a/src/model/ModCollection.ts +++ b/src/model/ModCollection.ts @@ -5,6 +5,7 @@ import { ModData } from './Mod'; export interface ModCollection { name: string; description?: string; + linkedId?: bigint; mods: string[]; } @@ -36,7 +37,10 @@ export enum CollectionManagerModalType { DESELECTING_MOD_MANAGER = 1, VIEW_SETTINGS = 2, ERRORS_FOUND = 'errors_found', - WARNINGS_FOUND = 'warnings_found' + WARNINGS_FOUND = 'warnings_found', + IMPORT_COLLECTION = 5, + EXPORT_COLLECTION = 6, + WARN_OVERWRITE_COLLECTION = 7 } export interface NotificationProps { diff --git a/src/renderer/components/collections/CollectionManagementToolbar.tsx b/src/renderer/components/collections/CollectionManagementToolbar.tsx index 482348a..8963b32 100644 --- a/src/renderer/components/collections/CollectionManagementToolbar.tsx +++ b/src/renderer/components/collections/CollectionManagementToolbar.tsx @@ -245,7 +245,6 @@ export default class CollectionManagementToolbarComponent extends Component< key="export" type="primary" icon={} - onClick={saveCollectionCallback} disabled={true || disabledFeatures || !madeEdits} loading={savingCollection} > @@ -256,7 +255,6 @@ export default class CollectionManagementToolbarComponent extends Component< key="copy" type="primary" icon={} - onClick={saveCollectionCallback} disabled={true || disabledFeatures || !madeEdits} loading={savingCollection} /> diff --git a/src/renderer/components/collections/CollectionManagerModal.tsx b/src/renderer/components/collections/CollectionManagerModal.tsx index 859a978..0d9204e 100644 --- a/src/renderer/components/collections/CollectionManagerModal.tsx +++ b/src/renderer/components/collections/CollectionManagerModal.tsx @@ -322,6 +322,9 @@ export default class CollectionManagerModal extends Component[] = [ updateType = 'warning'; } } + let correctedName = name; + const matches = name.match(/(.*)\s*\(([^()]*[Tt][Tt][Ss][Mm][Mm][^()]*)\)$/); + if (matches && matches[1]) { + correctedName = matches[1]; + } return ( ); };