minor
This commit is contained in:
parent
489659ebed
commit
6d95321ac4
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 = {};
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue