Skip to content

Commit

Permalink
Update license year
Browse files Browse the repository at this point in the history
Set settings defaults early
  • Loading branch information
mvdicarlo committed Mar 18, 2019
1 parent db0ccc5 commit 478859b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2018, Michael DiCarlo
Copyright (c) 2019, Michael DiCarlo
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand All @@ -9,7 +9,7 @@ modification, are permitted provided that the following conditions are met:
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of nor the names of its contributors may be used to
* Neither the name of nor the names of its contributors may be used to
endorse or promote products derived from this software without specific
prior written permission.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h2 mat-dialog-title>{{'Terms of Use' | translate}}</h2>
{{'Website Agreement' | translate}}
</mat-tab>
<mat-tab [label]="'License' | translate">
Copyright (c) 2018, Michael DiCarlo
Copyright (c) 2019, Michael DiCarlo
<br> All rights reserved.
<p>
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,6 @@ export class SettingsDialog implements OnInit {
public settingsForm: FormGroup;

constructor(fb: FormBuilder, private dialog: MatDialog, private databaseService: DatabaseService) {
settingsDB.defaults({
hardwareAcceleration: true,
postInterval: 0,
clearQueueOnFailure: true,
advertise: true
});

this.settingsForm = fb.group({
hardwareAcceleration: [true],
postInterval: [0],
Expand Down
6 changes: 6 additions & 0 deletions src/electron-src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ window.descriptionTemplateDB = dldb;
const settingsAdapter = new FileSync(path.join(app.getPath('userData'), 'data', 'settings.json'));
const sldb = low(settingsAdapter);
window.settingsDB = sldb;
settingsDB.defaults({
hardwareAcceleration: true,
postInterval: 0,
clearQueueOnFailure: true,
advertise: true
});

window.got = require('./src/got-request.js');

Expand Down

0 comments on commit 478859b

Please sign in to comment.