Skip to content
Snippets Groups Projects
Commit 10914283 authored by gyan000's avatar gyan000
Browse files

Do not display unpaired device in dock quick list.

parent e748846f
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,7 @@ namespace EOSConnect {
});
init_sms_store.begin (() => {
init_sms_history_window.begin ();
init_sms_history_tab.begin ();
});
......@@ -115,11 +115,14 @@ namespace EOSConnect {
SMSStore.instance (main_settings);
}
private async void init_sms_history_window () {
private async void init_sms_history_tab () {
SimpleAction simple_action = new SimpleAction ("telephony-open-sms-window-reply", null);
simple_action.activate.connect (() => {
sms_history_view.open_sms_window_reply ();
// sms_history_view.open_sms_window_reply ();
// sms_history_view.show_all ();
main_window.main_stack.set_visible_child_name ("sms_history_view");
warning ("par ka");
});
this.add_action (simple_action);
......@@ -158,6 +161,10 @@ namespace EOSConnect {
foreach (var device_entry in devices_map.entries) {
bool to_add = true;
if (device_entry.value.is_paired == false) {
to_add = false;
}
foreach (var device_menuitem in launcher_entry.quicklist.get_children ()) {
if (((DeviceMenuitem)device_menuitem).id == device_entry.value.device_num) {
......
......@@ -28,6 +28,7 @@ namespace EOSConnect {
public GLib.Settings main_settings { get; construct; }
public SMSHistory sms_history_view { get; construct; }
public Gtk.Stack main_stack { get; construct; }
private Views.DevicesView devices_view;
// private Gtk.InfoBar infobar_error;
......@@ -79,7 +80,7 @@ namespace EOSConnect {
devices_view = new Views.DevicesView (this);
var main_settings_view = new Views.MainSettingsView (this, main_settings);
var main_stack = new Gtk.Stack ();
main_stack = new Gtk.Stack ();
main_stack.expand = true;
main_stack.transition_type = Gtk.StackTransitionType.SLIDE_LEFT_RIGHT;
main_stack.add_titled (devices_view, "devices_view", _("Devices"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment