Files
kopia/htmlui/src/preload.js
Jarek Kowalski 5412d75f79 htmlui: approaching usability by mere mortals
- added ability to make new snapshots from the UI
- added directory picker
- hide/show macOS dock icon automatically
- fixed copy/paste on Mac (apparently if you don't have 'Edit' menu
  in your app, copy/paste and many other shortcut keys simply don't
  work)
- added smart time formatting ("X minutes ago", etc.) in lists
  using 'moment' library
- added progress information to snapshots
2020-02-22 20:03:57 -08:00

8 lines
167 B
JavaScript

const { dialog } = require("electron");
window.selectDirectory = function () {
return dialog.showOpenDialogSync({
properties: ['openDirectory']
});
}