Skip to content

Commit

Permalink
remove window state option from preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
amit9838 committed Jun 2, 2024
1 parent fa018d0 commit 95a9172
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/windowPreferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,6 @@ def __init__(self, application, **kwargs):
gradient_row.add_suffix(self.g_switch_box)
self.appearance_grp.add(gradient_row)

# Launch the app in maximize mode
launch_maximized = Adw.ActionRow.new()
launch_maximized.set_activatable(True)
launch_maximized.set_title(_("Launch Maximized"))
launch_maximized.set_subtitle(_("Launch the weather app in maximized mode (Refresh required)"))

self.g_switch_box = Gtk.Box(orientation=Gtk.Orientation.HORIZONTAL,valign=Gtk.Align.CENTER)
self.launch_max_switch = Gtk.Switch()
self.launch_max_switch.set_active(settings.should_launch_maximized)
self.launch_max_switch.connect("state-set",self._on_click_launch_maximixed)
self.g_switch_box.append(self.launch_max_switch)
launch_maximized.add_suffix(self.g_switch_box)
self.appearance_grp.add(launch_maximized)

# Units and measurement
self.measurement_group = Adw.PreferencesGroup.new()
self.measurement_group.set_margin_top(20)
Expand Down

0 comments on commit 95a9172

Please sign in to comment.