Change actions naming scheme

Use _ instead of capital letters in words for actions names. This will make some other stuff much easier.
This commit is contained in:
Rafał Dzięgiel
2021-04-22 14:29:40 +02:00
parent c9b2f25192
commit 084f78a851
3 changed files with 10 additions and 10 deletions

18
src/actions.js Normal file
View File

@@ -0,0 +1,18 @@
const Dialogs = imports.src.dialogs;
var actions = {
open_local: {
run: (window) => new Dialogs.FileChooser(window),
accels: ['<Ctrl>O'],
},
open_uri: {
run: (window) => new Dialogs.UriDialog(window),
accels: ['<Ctrl>U'],
},
prefs: {
run: (window) => new Dialogs.PrefsDialog(window),
},
about: {
run: (window) => new Dialogs.AboutDialog(window),
}
};