Open plugin dir when edit is clicked
This commit is contained in:
parent
e66c1ce447
commit
271101ba0b
|
@ -13,7 +13,15 @@
|
|||
function showSettings() {
|
||||
this.settingsOpen = true;
|
||||
}
|
||||
const methods = { };
|
||||
function editPlugin() {
|
||||
try {
|
||||
window.require('electron').shell.openItem(this.plugin.pluginPath);
|
||||
} catch (err) {
|
||||
console.log(err);
|
||||
}
|
||||
}
|
||||
|
||||
const methods = { editPlugin };
|
||||
|
||||
export default {
|
||||
props: ['plugin', 'togglePlugin', 'reloadPlugin', 'showSettings'],
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<Button :onClick="() => reloadPlugin(plugin)">
|
||||
<MiReload/>
|
||||
</Button>
|
||||
<Button>
|
||||
<Button :onClick="editPlugin">
|
||||
<MiEdit/>
|
||||
</Button>
|
||||
<Button type="err">
|
||||
|
|
Loading…
Reference in New Issue