Update screenshot-dialog.component.ts

This commit is contained in:
piotrpekala7 2020-04-02 01:08:57 +02:00
parent f71af8c57c
commit 24fffafbf1

View File

@ -24,7 +24,7 @@ export class ScreenshotDialogComponent implements OnInit {
private deviceService: DeviceDetectorService
) {
this.nameForm = this.formBuilder.group({
screenshotName: new FormControl(null, [Validators.required])
screenshotName: new FormControl(`screenshot-${Date.now()}`, [Validators.required])
});
this.isPngAvailable = this.electronService.isWindows || (this.deviceService.getDeviceInfo().os==='Windows');
}