forked from Shinonome/dots-hyprland
remove useless
This commit is contained in:
@@ -140,7 +140,6 @@ const CoverArt = ({ player, ...rest }) => Box({
|
|||||||
attribute: {
|
attribute: {
|
||||||
'updateCover': (self) => {
|
'updateCover': (self) => {
|
||||||
const player = Mpris.getPlayer();
|
const player = Mpris.getPlayer();
|
||||||
console.log('cover!');
|
|
||||||
|
|
||||||
// Player closed
|
// Player closed
|
||||||
// Note that cover path still remains, so we're checking title
|
// Note that cover path still remains, so we're checking title
|
||||||
@@ -356,7 +355,6 @@ export default () => Revealer({
|
|||||||
let foundPlayer = false;
|
let foundPlayer = false;
|
||||||
Mpris.players.forEach((player, i) => {
|
Mpris.players.forEach((player, i) => {
|
||||||
if (isRealPlayer(player)) {
|
if (isRealPlayer(player)) {
|
||||||
console.log('Found player', player);
|
|
||||||
foundPlayer = true;
|
foundPlayer = true;
|
||||||
box.children.forEach(child => {
|
box.children.forEach(child => {
|
||||||
child.destroy();
|
child.destroy();
|
||||||
@@ -368,7 +366,6 @@ export default () => Revealer({
|
|||||||
});
|
});
|
||||||
|
|
||||||
if (!foundPlayer) {
|
if (!foundPlayer) {
|
||||||
console.log('No players found');
|
|
||||||
const children = box.get_children();
|
const children = box.get_children();
|
||||||
for (let i = 0; i < children.length; i++) {
|
for (let i = 0; i < children.length; i++) {
|
||||||
const child = children[i];
|
const child = children[i];
|
||||||
@@ -394,7 +391,6 @@ export default () => Revealer({
|
|||||||
// let foundPlayer = false;
|
// let foundPlayer = false;
|
||||||
// Mpris.players.forEach((player, i) => {
|
// Mpris.players.forEach((player, i) => {
|
||||||
// if (isRealPlayer(player)) {
|
// if (isRealPlayer(player)) {
|
||||||
// console.log('Found player', player);
|
|
||||||
// foundPlayer = true;
|
// foundPlayer = true;
|
||||||
// box.children.forEach(child => {
|
// box.children.forEach(child => {
|
||||||
// child.destroy();
|
// child.destroy();
|
||||||
@@ -406,7 +402,6 @@ export default () => Revealer({
|
|||||||
// });
|
// });
|
||||||
|
|
||||||
// if (!foundPlayer) {
|
// if (!foundPlayer) {
|
||||||
// console.log('No players found');
|
|
||||||
// const children = box.get_children();
|
// const children = box.get_children();
|
||||||
// for (let i = 0; i < children.length; i++) {
|
// for (let i = 0; i < children.length; i++) {
|
||||||
// const child = children[i];
|
// const child = children[i];
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ import {
|
|||||||
CalculationResultButton, CustomCommandButton, DirectoryButton,
|
CalculationResultButton, CustomCommandButton, DirectoryButton,
|
||||||
DesktopEntryButton, ExecuteCommandButton, SearchButton
|
DesktopEntryButton, ExecuteCommandButton, SearchButton
|
||||||
} from './searchbuttons.js';
|
} from './searchbuttons.js';
|
||||||
import { enableClickthrough } from '../../lib/roundedcorner.js';
|
|
||||||
|
|
||||||
// Add math funcs
|
// Add math funcs
|
||||||
const { abs, sin, cos, tan, cot, asin, acos, atan, acot } = Math;
|
const { abs, sin, cos, tan, cot, asin, acos, atan, acot } = Math;
|
||||||
|
|||||||
Reference in New Issue
Block a user