opened 11:03PM - 17 Feb 23 UTC
bug
## Environment
Joplin version: 2.10.4 pre-release
Platform: Windows 10 pro x…64 (Virtual Machine)
OS specifics: 22H2
## Steps to reproduce
1. Install Joplin Desktop.
2. Go to **Tools > Options > Encryption**.
3. Under **End-to-end Encryption** press the **Enable encryption** button.
4. The button changes colour to show it has been pressed but nothing happens.

## Describe what you expected to happen
The encryption set-up dialog should appear.
## Logfiles
The below logs were produced when following the above steps and pressing the **Enable encryption** button twice.
### Joplin log
[log.txt](https://github.com/laurent22/joplin/files/10772192/log.txt)
### Console log
```text
C:\Users\vbox\AppDat…r\gui\dialogs.js:16 Uncaught (in promise)
TypeError: smalltalk.alert is not a function
at Dialogs.<anonymous> (C:\Users\vbox\AppDat…ui\dialogs.js:16:29)
at Generator.next (<anonymous>)
at C:\Users\vbox\AppDat…gui\dialogs.js:8:71
at new Promise (<anonymous>)
at __awaiter (C:\Users\vbox\AppDat…gui\dialogs.js:4:12)
at Dialogs.alert (C:\Users\vbox\AppDat…ui\dialogs.js:15:16)
at C:\Users\vbox\AppDat…figScreen.js:181:37
at Generator.throw (<anonymous>)
at rejected (C:\Users\vbox\AppDat…onfigScreen.js:6:65)
C:\Users\vbox\AppDat…n\lib\Logger.js:190 19:11:45: e2ee/utils: toggleAndSetupEncryption: enabled: true Master key null
C:\Users\vbox\AppDat…r\gui\dialogs.js:16 Uncaught (in promise)
TypeError: smalltalk.alert is not a function
at Dialogs.<anonymous> (C:\Users\vbox\AppDat…ui\dialogs.js:16:29)
at Generator.next (<anonymous>)
at C:\Users\vbox\AppDat…gui\dialogs.js:8:71
at new Promise (<anonymous>)
at __awaiter (C:\Users\vbox\AppDat…gui\dialogs.js:4:12)
at Dialogs.alert (C:\Users\vbox\AppDat…ui\dialogs.js:15:16)
at C:\Users\vbox\AppDat…figScreen.js:181:37
at Generator.throw (<anonymous>)
at rejected (C:\Users\vbox\AppDat…onfigScreen.js:6:65)
```
*Console log text*🡅

*Console log screengrab showing error highlights*🡅
## Other information
- File system sync to a local folder on the same disk.
- Default install, no plugins. no modifications, no notes added.
- This is not intermittent. Testing so far with this set-up has a 100% failure rate.
- Following a downgrade to 2.9.17, with the same system set-up, the **Enable encryption** button works and the dialog is triggered.
- Linked forum post 🡆 [*Joplin 2.10.4 (pre-release) can’t Enable encryption*](https://discourse.joplinapp.org/t/joplin-2-10-4-pre-release-cant-enable-encryption/29601).