Fix the single screen case
This commit is contained in:
parent
de1439b024
commit
d9740757cd
|
@ -77,8 +77,10 @@ function change_wallpaper(path, extension)
|
||||||
if screen.count() == 2 and file_exists(path..'-16-9.'..extension) and file_exists(path..'-4-3.'..extension) then
|
if screen.count() == 2 and file_exists(path..'-16-9.'..extension) and file_exists(path..'-4-3.'..extension) then
|
||||||
gears.wallpaper.maximized(path .. '-16-9.' .. extension, 1, true)
|
gears.wallpaper.maximized(path .. '-16-9.' .. extension, 1, true)
|
||||||
gears.wallpaper.maximized(path .. '-4-3.' .. extension, 2, true)
|
gears.wallpaper.maximized(path .. '-4-3.' .. extension, 2, true)
|
||||||
elseif file_exists(path..'.'..extension) then
|
elseif file_exists(path..'-16-9.'..extension) then
|
||||||
gears.wallpaper.maximized(path .. '.' .. extension, 1, true)
|
for s = 1, screen.count() do
|
||||||
|
gears.wallpaper.maximized(path .. '-16-9.' .. extension, s, true)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue