Remove global service declarations and change to declarations upon usage. (#761)
* Remove global service declarations and change to declarations upon usage. * Only load cava service if cava is enabled.
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
import { bind, Variable } from 'astal';
|
||||
import AstalMpris from 'gi://AstalMpris?version=0.1';
|
||||
import { getTimeStamp } from 'src/components/menus/media/components/timebar/helpers';
|
||||
import { mprisService } from 'src/lib/constants/services';
|
||||
import options from 'src/options';
|
||||
|
||||
const mprisService = AstalMpris.get_default();
|
||||
const { noMediaText } = options.menus.media;
|
||||
|
||||
export const activePlayer = Variable<AstalMpris.Player | undefined>(undefined);
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { notifdService } from 'src/lib/constants/services';
|
||||
import icons from 'src/lib/icons/icons2';
|
||||
import options from 'src/options';
|
||||
import { errorHandler, lookUpIcon } from 'src/lib/utils';
|
||||
import { Variable } from 'astal';
|
||||
import AstalNotifd from 'gi://AstalNotifd?version=0.1';
|
||||
|
||||
const notifdService = AstalNotifd.get_default();
|
||||
const { clearDelay } = options.notifications;
|
||||
|
||||
export const removingNotifications = Variable<boolean>(false);
|
||||
|
||||
Reference in New Issue
Block a user