Commit graph

8 commits

Author SHA1 Message Date
Jack Schedel 82f8761397
Fixed 2 Electron Crashes (#288)
Fixes #277

* fixed crash on attempting to open new instance, required refactoring BrowserWindow to global

Uncaught Exception:
ReferenceError: win is not defined
    at click (C:\Users\jacks\AppData\Local\Programs\better-chatgpt\resources\app.asar\electron\index.cjs:53:9)
    at MenuItem.click (node:electron/js2c/browser_init:2:30166)
    at a._executeCommand (node:electron/js2c/browser_init:2:35562)

* fixed crash on attempting to open new instance, required refactoring BrowserWindow to global

Uncaught Exception:
ReferenceError: win is not defined
    at click (C:\Users\jacks\AppData\Local\Programs\better-chatgpt\resources\app.asar\electron\index.cjs:53:9)
    at MenuItem.click (node:electron/js2c/browser_init:2:30166)
    at a._executeCommand (node:electron/js2c/browser_init:2:35562)

* fixed Electron process not closing on crash

previously left the process still existing on crash (only viewable in task manager). error behavior is the same as it was before, just now must be explicitly defined.
2023-05-10 23:54:22 +08:00
Jack Schedel 58cafd20a5
move clear conversation to settings + focus prompt searchbar + hid electron menubar (#285)
* hid electron menubar

* command prompt search bar automatically focused on button press

* moved clear conversation into settings, revamped to match style
2023-05-09 21:15:26 +08:00
Jing Hua 00b2b497f0 fix: electron minimise 2023-04-23 15:56:58 +08:00
Toh Jing Hua a5e08af456 fix: electron file path 2023-04-17 00:34:56 +08:00
Jing Hua 3f0ada4a9d
Sync to Google Drive (#233)
* google drive api

* fix: google-api

* GoogleCloudStorage

* list files api

* Google Cloud Storage

* move button to side menu

* sync status

* rename file

* show popup for those with cloud sync

* update button style

* auto close modal after logged in

* auto popup every 59min

* set as unauthenticated if update fails

* i18n

* add spin animation

* feat: Toast

* clear toast

* electron: desktop google drive integration

This update includes integration with Google Drive for desktop access,
but requires a new URL, which may cause existing chat data to be lost.
To minimize disruption, users can export their current chat data and
import it into the newer version.

* update note

* error handling

* support multiple drive files

* feat: delete drive file

* i18n

* change style
2023-04-14 15:29:13 +08:00
Jing Hua 815bb19c72 feat: desktop minimise to tray + change icon
fixes #213
2023-04-08 22:31:56 +08:00
Jing Hua 22d83c7677 electron: auto update 2023-04-01 21:36:37 +08:00
Jing Hua 4903399d56
feat: desktop app (#169)
* electron

* github actions

* fix publish.yml

* more concise

* update linux target

* gitignore add newline
2023-03-30 13:58:59 +08:00