1
1
mirror of https://pagure.io/fedora-kickstarts.git synced 2024-12-24 12:13:08 +00:00

desktop: fix installer extension

We were using the wrong api so it didn't work.
This commit is contained in:
Ray Strode 2011-03-29 01:47:04 -04:00 committed by Matthias Clasen
parent eda88e846a
commit 907f463ac0

View File

@ -60,7 +60,7 @@ const Util = imports.misc.util;
function main() { function main() {
let app = Shell.AppSystem.get_default().get_app('anaconda.desktop'); let app = Shell.AppSystem.get_default().get_app('anaconda.desktop');
let item = new PopupMenu.PopupMenuItem(app.get_name()); let item = new PopupMenu.PopupMenuItem(app.get_name());
item.connect('activate', function() { app.launch(); }); item.connect('activate', function() { app.activate(-1); });
Main.panel._statusmenu.menu.addMenuItem(item, Main.panel._statusmenu.menu._getMenuItems().length - 1); Main.panel._statusmenu.menu.addMenuItem(item, Main.panel._statusmenu.menu._getMenuItems().length - 1);
} }