This commit is contained in:
Mr. Stallion 2023-12-20 20:49:19 -08:00
parent 489659ebed
commit 6d95321ac4
4 changed files with 26 additions and 0 deletions

View File

@ -1,5 +1,9 @@
# Changelog
## 1.25.1
* Shift-clicking in eicon selector adds the icon without closing the selector
* Minor updates to browser switching
## 1.25.0
* Added option for switching browsers (Credit: [@greyhoof](https://github.com/greyhoof))
* Fixed broken adblocker

View File

@ -21,10 +21,21 @@ export default class MatchTags extends Vue {
merged!: MatchResultScores;
// protected humanized: boolean = false;
//
// protected furryPreferenceId: string = '';
@Hook('mounted')
onMounted(): void {
this.merged = this.match.merged;
// this.humanized = false;
// this.furryPreferenceId = TagId.FurryPreference.toString();
//
// const furryPreference = Matcher.getTagValueList(TagId.FurryPreference, this.match.you.you);
//
// if (this.match.you.info.species === Species.Human && furryPreference === FurryPreference.HumansOnly) {
// this.humanized = true;
// }
}
@ -36,6 +47,10 @@ export default class MatchTags extends Vue {
getTagDesc(key: any): any {
// if (key === this.furryPreferenceId) {
// return this.humanized ? 'Humans' : 'Anthros';
// }
return TagId[key].toString().replace(/([A-Z])/g, ' $1').trim();
}
}

View File

@ -86,6 +86,7 @@ export class IndexedStore implements PermanentIndexedStore {
// fix to clean out extra customs that somehow sometimes appear:
if (_.isArray(data.profileData.character.customs)) {
log.warn('character.customs.strange.indexed.getProfile', {name: data.profileData.character.name, data, customs: data.profileData.character.customs});
data.profileData.character.customs = {};
await this.storeProfile(data.profileData);
}
@ -102,6 +103,7 @@ export class IndexedStore implements PermanentIndexedStore {
// fix to clean out extra customs that somehow sometimes appear:
if (_.isArray(c.character.customs) || !_.isPlainObject(c.character.customs)) {
log.debug('character.customs.strange.indexed.prepareProfileData', {name: c.character.name, c, customs: c.character.customs});
c.character.customs = {};
}

View File

@ -3,6 +3,7 @@ import { PermanentIndexedStore, ProfileRecord } from './types';
import { CharacterImage, SimpleCharacter } from '../../interfaces';
import { WorkerClient } from './worker/client';
import log from 'electron-log';
export class WorkerStore implements PermanentIndexedStore {
@ -31,6 +32,8 @@ export class WorkerStore implements PermanentIndexedStore {
// fix custom kinks to prevent hangs
if (record && Array.isArray(record.profileData.character.customs)) {
log.warn('character.customs.strange.worker.getProfile', {name: record.profileData.character.name, record, customs: record.profileData.character.customs});
// fix customs because it will crash the client
const customsObject: ProfileRecord['profileData']['character']['customs'] = {};
@ -39,6 +42,8 @@ export class WorkerStore implements PermanentIndexedStore {
}
record.profileData.character.customs = customsObject;
await this.storeProfile(record.profileData);
}
return record;