Fixed a few things

This commit is contained in:
2025-11-06 01:06:46 +01:00
parent e116e0249d
commit 89a5ae1304
8 changed files with 16 additions and 11 deletions

View File

@@ -9,6 +9,7 @@
local helpers = require('lain.helpers')
local Gio = require('lgi').Gio
local GioUnix = require('lgi').GioUnix
local focused = require('awful.screen').focused
local wibox = require('wibox')
local naughty = require('naughty')
@@ -83,11 +84,11 @@ local function factory(args)
fs_now = {}
local notifypaths = {}
for _, mount in ipairs(Gio.unix_mounts_get()) do
for _, mount in ipairs(GioUnix.mounts_get()) do
local info, path
local fs_ty = Gio.unix_mount_get_fs_type(mount)
local fs_ty = GioUnix.mount_get_fs_type(mount)
if fs_ty ~= 'autofs' and fs_ty ~= 'efivarfs' and fs_ty ~= 'tmpfs' then
path = Gio.unix_mount_get_mount_path(mount)
path = GioUnix.mount_get_mount_path(mount)
local root = Gio.File.new_for_path(path)
info = root:query_filesystem_info(query)
end

View File

@@ -6752,7 +6752,7 @@ namespace sol {
static_assert(std::is_constructible<T, Args&&...>::value, "T must be constructible with Args");
*this = nullopt;
this->construct(std::forward<Args>(args)...);
new (static_cast<void*>(this)) optional(std::in_place, std::forward<Args>(args)...);
}
/// Swaps this optional with the other.