Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
alexkdeveloper authored Apr 21, 2023
1 parent 1510f1e commit 195680a
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -491,19 +491,19 @@ private void on_stop_record_clicked(){
var play_last_station_row = new Adw.ActionRow();
play_last_station_row.can_focus = false;
play_last_station_row.title = _("Play the last station at startup");
var play_last_station_check_button = new CheckButton();
play_last_station_check_button.valign = Align.CENTER;
play_last_station_row.add_suffix(play_last_station_check_button);
var play_last_station_switch = new Switch();
play_last_station_switch.valign = Align.CENTER;
play_last_station_row.add_suffix(play_last_station_switch);
var show_favorite_stations_row = new Adw.ActionRow();
show_favorite_stations_row.title = _("Show favorites after launch");
var show_favorites_check_button = new CheckButton();
show_favorites_check_button.valign = Align.CENTER;
show_favorite_stations_row.add_suffix(show_favorites_check_button);
var show_favorites_switch = new Switch();
show_favorites_switch.valign = Align.CENTER;
show_favorite_stations_row.add_suffix(show_favorites_switch);
var not_load_stations_row = new Adw.ActionRow();
not_load_stations_row.title = _("Do not load stations at startup");
var not_load_stations_check_button = new CheckButton();
not_load_stations_check_button.valign = Align.CENTER;
not_load_stations_row.add_suffix(not_load_stations_check_button);
var not_load_stations_switch = new Switch();
not_load_stations_switch.valign = Align.CENTER;
not_load_stations_row.add_suffix(not_load_stations_switch);

var preferences_box = new ListBox();
preferences_box.add_css_class("boxed-list");
Expand All @@ -512,9 +512,9 @@ private void on_stop_record_clicked(){
preferences_box.append(not_load_stations_row);

var settings = RadioSettings.settings;
settings.bind("play-last-station-at-startup", play_last_station_check_button, "active", GLib.SettingsBindFlags.DEFAULT);
settings.bind("show-favorite-stations-at-startup", show_favorites_check_button, "active", GLib.SettingsBindFlags.DEFAULT);
settings.bind("not-load-stations-at-startup", not_load_stations_check_button, "active", GLib.SettingsBindFlags.DEFAULT);
settings.bind("play-last-station-at-startup", play_last_station_switch, "active", GLib.SettingsBindFlags.DEFAULT);
settings.bind("show-favorite-stations-at-startup", show_favorites_switch, "active", GLib.SettingsBindFlags.DEFAULT);
settings.bind("not-load-stations-at-startup", not_load_stations_switch, "active", GLib.SettingsBindFlags.DEFAULT);

var window = new Adw.PreferencesWindow();
window.title = _("Preferences");
Expand Down

0 comments on commit 195680a

Please sign in to comment.