replace all window.prompt() with kiri.ui.prompt() for electron. open electron links in os browser
This commit is contained in:
parent
4d81932f38
commit
995b338946
6 changed files with 86 additions and 56 deletions
|
|
@ -36,12 +36,13 @@ function rename(sel) {
|
|||
return;
|
||||
}
|
||||
let widget = widgets[0];
|
||||
const newname = prompt("new widget name", widget.meta.file);
|
||||
if (newname) {
|
||||
widget.meta.file = newname;
|
||||
api.platform.changed();
|
||||
api.space.save(true);
|
||||
}
|
||||
kiri.ui.prompt("new widget name", widget.meta.file || "no name").then(newname => {
|
||||
if (newname) {
|
||||
widget.meta.file = newname;
|
||||
api.platform.changed();
|
||||
api.space.save(true);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function replace(vertices, sel) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue