UNPKG

@dark-engine/platform-desktop

Version:

Dark renderer to desktop platforms like Windows, Linux, macOS via Nodegui and Qt

14 lines (13 loc) 419 B
import { QFileDialog } from '@nodegui/nodegui'; import { component } from '@dark-engine/core'; import { qFileDialog } from '../factory'; const FileDialog = component(props => qFileDialog(props), { displayName: 'FileDialog', }); class QDarkFileDialog extends QFileDialog { setOpen(value) { value ? this.show() : this.close(); } } export { FileDialog, QDarkFileDialog }; //# sourceMappingURL=file-dialog.js.map