mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Update JS for API changes moving to paper-dialog
This commit is contained in:
@@ -324,7 +324,7 @@ function onOpenLogLocation() {
|
||||
loot.query('openLogLocation').catch(handlePromiseError);
|
||||
}
|
||||
function onShowAboutDialog() {
|
||||
document.getElementById('about').showModal();
|
||||
document.getElementById('about').open();
|
||||
}
|
||||
function handleUnappliedChangesClose(change) {
|
||||
loot.Dialog.askQuestion('', loot.l10n.translate('You have not yet applied or cancelled your %s. Are you sure you want to quit?', change), loot.l10n.translate('Quit'), (result) => {
|
||||
@@ -407,7 +407,7 @@ function onCloseSettingsDialog(evt) {
|
||||
evt.target.parentElement.close();
|
||||
}
|
||||
function onShowSettingsDialog() {
|
||||
document.getElementById('settingsDialog').showModal();
|
||||
document.getElementById('settingsDialog').open();
|
||||
}
|
||||
|
||||
function onEditorOpen(evt) {
|
||||
|
||||
@@ -274,7 +274,7 @@
|
||||
return setGameData(loot);
|
||||
}).then(() => {
|
||||
if (!loot.settings.lastVersion || loot.settings.lastVersion !== loot.version) {
|
||||
document.getElementById('firstRun').showModal();
|
||||
document.getElementById('firstRun').open();
|
||||
}
|
||||
}).catch(handlePromiseError);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user