Commit 63593e1a authored by Cédric Bellegarde's avatar Cédric Bellegarde

Remove AdaptiveSize

parent d623aa60
Pipeline #213868 passed with stage
in 3 minutes and 17 seconds
......@@ -207,16 +207,6 @@ class ReplayGain:
ALBUM = 1
class AdaptiveSize:
NONE = 1 << 0
PHONE = 1 << 1
SMALL = 1 << 2
MEDIUM = 1 << 3
NORMAL = 1 << 4
BIG = 1 << 5
LARGE = 1 << 6
class Size:
MINI = 250
PHONE = 360 # Librem Phone
......
......@@ -12,7 +12,7 @@
from gi.repository import Gtk, GLib
from lollypop.define import App, ScanType, AdaptiveSize
from lollypop.define import App, ScanType
from lollypop.container import Container
from lollypop.toolbar import Toolbar
from lollypop.utils import is_unity, emit_signal
......@@ -174,9 +174,6 @@ class Window(Gtk.ApplicationWindow, SignalsHelper):
if App().lookup_action("miniplayer").get_state():
return
if not self.is_maximized():
# Keep a minimal height
if height < AdaptiveSize.SMALL:
height = AdaptiveSize.SMALL
App().settings.set_value("window-size",
GLib.Variant("ai", [width, height]))
App().settings.set_value("window-position", GLib.Variant("ai", [x, y]))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment