small fixes
This commit is contained in:
parent
528e9d17c0
commit
f0ecf5e173
3 changed files with 6 additions and 6 deletions
|
@ -42,7 +42,6 @@ namespace Webpin {
|
|||
construct {
|
||||
program_name = "Webpin";
|
||||
exec_name = "com.github.artemanufrij.webpin";
|
||||
application_id = "com.github.artemanufrij.webpin";
|
||||
app_launcher = application_id + ".desktop";
|
||||
flags |= GLib.ApplicationFlags.HANDLES_OPEN;
|
||||
|
||||
|
@ -61,12 +60,9 @@ namespace Webpin {
|
|||
protected override void activate () {
|
||||
if (mainwindow != null) {
|
||||
mainwindow.present ();
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
mainwindow = new MainWindow ();
|
||||
mainwindow.destroy.connect (() => { mainwindow = null; });
|
||||
mainwindow.set_application(this);
|
||||
}
|
||||
|
||||
|
|
|
@ -79,9 +79,11 @@ namespace Webpin {
|
|||
}
|
||||
return return_value;
|
||||
} set {
|
||||
if (value != null) {
|
||||
edit_propertie ("WebpinPrimaryColor", value.to_string ());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public bool mute_notifications {
|
||||
get {
|
||||
|
|
|
@ -313,7 +313,6 @@ namespace Webpin {
|
|||
|
||||
if (app_icon_valid && app_name_valid && app_url_valid) {
|
||||
var desktop_file = new DesktopFile (name, url, icon, stay_open);
|
||||
desktop_file.color = primary_color_button.rgba;
|
||||
switch (mode) {
|
||||
case assistant_mode.new_app:
|
||||
application_created (desktop_file.save_to_file ());
|
||||
|
@ -322,6 +321,7 @@ namespace Webpin {
|
|||
application_edited (desktop_file.save_to_file ());
|
||||
break;
|
||||
}
|
||||
desktop_file.color = primary_color_button.rgba;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -334,6 +334,8 @@ namespace Webpin {
|
|||
stay_open_when_closed.active = desktop_file.hide_on_close;
|
||||
if (desktop_file.color != null) {
|
||||
primary_color_button.set_rgba (desktop_file.color);
|
||||
} else {
|
||||
primary_color_button.set_rgba ({ 222, 222, 222, 255 });
|
||||
}
|
||||
update_app_icon ();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue