Skip to content

Commit 2619a58

Browse files
authored
Update Preferences.vala
1 parent 1578818 commit 2619a58

File tree

1 file changed

+5
-11
lines changed

1 file changed

+5
-11
lines changed

src/Preferences.vala

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -171,23 +171,17 @@ namespace jorts {
171171
/*************************************************/
172172

173173

174-
string link = Granite.SettingsUri.PERMISSIONS ;
175-
string linkname = _("Permissions") ;
174+
var link = Granite.SettingsUri.PERMISSIONS ;
175+
var linkname = _("Permissions") ;
176176

177177
string desktop_environment = Environment.get_variable ("XDG_CURRENT_DESKTOP");
178178
print(desktop_environment + " detected!");
179-
180-
// Show only in Pantheon because others do not have an autostart panel
181-
if (desktop_environment == "Pantheon") {
182-
183-
string link = Granite.SettingsUri.PERMISSIONS ;
184-
string linkname = _("Permissions") ;
185179

186180
// Show only in Windows
187-
} else if (desktop_environment == "Windows") {
181+
if (desktop_environment == "Windows") {
188182

189-
string link = "https://support.microsoft.com/en-gb/windows/configure-startup-applications-in-windows-115a420a-0bff-4a6f-90e0-1934c844e473" ;
190-
string linkname = _("Microsoft support") ;
183+
var link = "https://support.microsoft.com/en-gb/windows/configure-startup-applications-in-windows-115a420a-0bff-4a6f-90e0-1934c844e473" ;
184+
var linkname = _("Microsoft support") ;
191185

192186
// show in all other DE
193187
} else {

0 commit comments

Comments
 (0)