Skip to content

Commit

Permalink
Merge pull request #373 from jobsofferings/feature_allow_oncontextmen…
Browse files Browse the repository at this point in the history
…u_taskbar_0123

Applications that are not in the icon object can now be removed
  • Loading branch information
User782Tec authored Jan 23, 2024
2 parents 9bb6212 + 884dcc5 commit 2c78d88
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions desktop.js
Original file line number Diff line number Diff line change
Expand Up @@ -3086,10 +3086,7 @@ function openapp(name) {
$('.window.' + name).addClass('load');
showwin(name);
$('#taskbar').attr('count', Number($('#taskbar').attr('count')) + 1);
if (name in icon)
$('#taskbar').append(`<a class="${name}" onclick="taskbarclick(\'${name}\')" win12_title="${$(`.window.${name}>.titbar>p`).text()}" onmouseenter="showdescp(event)" onmouseleave="hidedescp(event)" oncontextmenu="return showcm(event, 'taskbar', '${name}')"><img src="icon/${icon[name]}"></a>`);
else
$('#taskbar').append(`<a class="${name}" onclick="taskbarclick(\'${name}\')" win12_title="${$(`.window.${name}>.titbar>p`).text()}" onmouseenter="showdescp(event)" onmouseleave="hidedescp(event)"><img src="icon/${name}.svg"></a>`);
$('#taskbar').append(`<a class="${name}" onclick="taskbarclick(\'${name}\')" win12_title="${$(`.window.${name}>.titbar>p`).text()}" onmouseenter="showdescp(event)" onmouseleave="hidedescp(event)" oncontextmenu="return showcm(event, 'taskbar', '${name}')"><img src="icon/${icon[name] || (name + '.svg')}"></a>`);
if ($('#taskbar').attr('count') == '1') {
$('#taskbar').css('display', 'flex');
}
Expand Down

0 comments on commit 2c78d88

Please sign in to comment.