diff --git a/src/constants/visibility.js b/src/constants/visibility.js new file mode 100644 index 00000000..a9adca12 --- /dev/null +++ b/src/constants/visibility.js @@ -0,0 +1,18 @@ +export default { + Public: { + name: 'public', + value: 0 + }, + Unlisted: { + name: 'unlisted', + value: 1 + }, + Private: { + name: 'private', + value: 2 + }, + Direct: { + name: 'direct', + value: 3 + } +} diff --git a/src/main/preferences.js b/src/main/preferences.js index 3c0b1e1b..2f8ceddf 100644 --- a/src/main/preferences.js +++ b/src/main/preferences.js @@ -1,5 +1,6 @@ import storage from 'electron-json-storage' import objectAssignDeep from 'object-assign-deep' +import Visibility from '../constants/visibility' const Base = { general: { @@ -10,7 +11,7 @@ const Base = { theme: 'white', fontSize: 14, displayNameStyle: 0, - tootVisibility: 0 + tootVisibility: Visibility.Public.value }, state: { collapse: false diff --git a/src/renderer/components/Preferences/General.vue b/src/renderer/components/Preferences/General.vue index e7d8dc9b..de571754 100644 --- a/src/renderer/components/Preferences/General.vue +++ b/src/renderer/components/Preferences/General.vue @@ -84,6 +84,7 @@