mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-15 21:56:18 -08:00
feat: add icon, about dialog and menu
This commit is contained in:
1 parent
78079aa572
commit
bcf49b84c7
10 files changed
+120
-15
No files matched your search
@@ -5,6 +5,8 @@ import { guid } from '@datorama/akita';
|
||||
import { Playlist } from './src/app/playlist-uploader/playlist.interface';
|
||||
import Nedb from 'nedb-promises-ts';
|
||||
|
||||
const join = require('path').join;
|
||||
const openAboutWindow = require('about-window').default;
|
||||
const db = new Nedb<Playlist>({ filename: 'data.db', autoload: true });
|
||||
|
||||
export class Api {
|
||||
@@ -56,6 +58,14 @@ export class Api {
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
ipcMain.on('show-about', () => {
|
||||
openAboutWindow({
|
||||
icon_path: join(__dirname, 'dist/assets/icons/icon.png'),
|
||||
copyright: 'Copyright (c) 2020 4gray',
|
||||
package_json_dir: __dirname,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user