Skip to content

Commit 69c4ea6

Browse files
committed
remove unused code
1 parent b43ff3b commit 69c4ea6

File tree

1 file changed

+0
-62
lines changed

1 file changed

+0
-62
lines changed

src/Views/PreferencesView.vala

Lines changed: 0 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -157,68 +157,6 @@
157157
autostart_box.append (both_buttons);
158158
settingsbox.append (autostart_box);
159159

160-
161-
/*************************************************/
162-
/* Autostart Link */
163-
/*************************************************/
164-
/*
165-
string desktop_environment = Environment.get_variable ("XDG_CURRENT_DESKTOP");
166-
print ("\nEnvironment: " + desktop_environment + " detected!");
167-
168-
// Show only in Pantheon because others do not have an autostart panel
169-
if (desktop_environment == "Pantheon") {
170-
171-
var link = Granite.SettingsUri.PERMISSIONS ;
172-
var linkname = _("Permissions") ;
173-
174-
var permissions_box = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 6);
175-
var permissions_link = new Gtk.LinkButton.with_label (
176-
link,
177-
linkname
178-
);
179-
180-
// _("Applications → Permissions")
181-
permissions_link.tooltip_text = link;
182-
permissions_link.halign = Gtk.Align.END;
183-
184-
var permissions_label = new Granite.HeaderLabel (_("Allow to start at login")) {
185-
mnemonic_widget = permissions_link,
186-
secondary_text = _("You can set the sticky notes to appear when you log in by adding Jorts to autostart")
187-
};
188-
permissions_label.set_hexpand (true);
189-
190-
permissions_box.append (permissions_label);
191-
permissions_box.append (permissions_link);
192-
settingsbox.append (permissions_box);
193-
194-
// Not Pantheon, not the Windows port. Must be a rando DE
195-
} else {
196-
197-
var link = "https://flathub.org/apps/search?q=autostart" ;
198-
var linkname = _("Autostart apps") ;
199-
200-
var permissions_box = new Gtk.Box (Gtk.Orientation.HORIZONTAL, 6);
201-
var permissions_link = new Gtk.LinkButton.with_label (
202-
link,
203-
linkname
204-
);
205-
206-
// _("Applications → Permissions")
207-
permissions_link.tooltip_text = link;
208-
permissions_link.halign = Gtk.Align.END;
209-
210-
var permissions_label = new Granite.HeaderLabel (_("Allow to start at login")) {
211-
mnemonic_widget = permissions_link,
212-
secondary_text = _("You can set the sticky notes to appear when you log in by adding Jorts to autostart")
213-
};
214-
permissions_label.set_hexpand (true);
215-
216-
permissions_box.append (permissions_label);
217-
permissions_box.append (permissions_link);
218-
settingsbox.append (permissions_box);
219-
220-
}
221-
*/
222160
/*************************************************/
223161
// Bar at the bottom
224162
var actionbar = new Gtk.ActionBar ();

0 commit comments

Comments
 (0)