🔧 chore: use retrozinndev/gnim-utils for extra function in utils module
also started developing the universal compositor implementation again
This commit is contained in:
@@ -95,8 +95,7 @@ class PlayerWidget extends Gtk.Box {
|
||||
<Astal.Slider hexpand max={createBinding(player, "length").as(Math.floor)}
|
||||
value={createBinding(player, "position").as(Math.floor)}
|
||||
onChangeValue={(_, type, value) => {
|
||||
if(type === undefined || type === null)
|
||||
return;
|
||||
if(type == null) return;
|
||||
|
||||
if(!dragTimer) {
|
||||
dragTimer = setTimeout(() =>
|
||||
|
||||
@@ -3,7 +3,7 @@ import { createBinding, createState, With } from "ags";
|
||||
import { Wireplumber } from "../../modules/volume";
|
||||
import { Windows } from "../../windows";
|
||||
import { Backlights } from "../../modules/backlight";
|
||||
import { secureBaseBinding, secureBinding, variableToBoolean } from "../../modules/utils";
|
||||
import { secureBaseBinding, variableToBoolean } from "../../modules/utils";
|
||||
|
||||
import Pango from "gi://Pango?version=1.0";
|
||||
import GLib from "gi://GLib?version=2.0";
|
||||
@@ -13,7 +13,7 @@ import OSDMode from "./modules/osdmode";
|
||||
|
||||
export const OSDModes = {
|
||||
sink: new OSDMode({
|
||||
available: secureBinding(AstalWp.get_default(), "defaultSpeaker", false).as((sink) =>
|
||||
available: createBinding(AstalWp.get_default(), "defaultSpeaker").as((sink) =>
|
||||
Boolean(sink)),
|
||||
icon: secureBaseBinding<AstalWp.Endpoint>(
|
||||
createBinding(AstalWp.get_default(), "defaultSpeaker"),
|
||||
|
||||
Reference in New Issue
Block a user