Skip to content
This repository has been archived by the owner on Jul 21, 2019. It is now read-only.

Commit

Permalink
Fixed some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
teejee2008 committed May 10, 2018
1 parent c64d210 commit f973278
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Gtk/AptikGtk.vala
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ using TeeJee.GtkHelper;

public const string AppName = "Aptik GTK";
public const string AppShortName = "aptik-gtk";
public const string AppVersion = "18.5.1";
public const string AppVersion = "18.5.2";
public const string AppAuthor = "Tony George";
public const string AppAuthorEmail = "[email protected]";

Expand All @@ -54,7 +54,7 @@ public class AptikGtk : GLib.Object {

public Mode mode = Mode.BACKUP;

public GUIMode guimode = Mode.EASY;
public GUIMode guimode = GUIMode.EASY;

public bool include_repos = true;
public bool include_cache = true;
Expand Down
18 changes: 18 additions & 0 deletions src/Gtk/ScriptManager.vala
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ using TeeJee.GtkHelper;
public class ScriptManager : ManagerBox {

protected Gtk.TreeViewColumn col_enable;

protected Gtk.Box bbox_backup;

public ScriptManager(MainWindow parent) {

Expand All @@ -60,6 +62,8 @@ public class ScriptManager : ManagerBox {
bbox.set_layout(Gtk.ButtonBoxStyle.CENTER);
hbox_actions.add(bbox);

bbox_backup = bbox;

//btn_add_files
var button = new Gtk.Button.with_label(_("Add Script File"));
button.set_size_request(150,-1);
Expand Down Expand Up @@ -120,6 +124,20 @@ public class ScriptManager : ManagerBox {
(cell as Gtk.CellRendererText).text = txt;
}

public override void init_ui_mode(Mode _mode) {

base.init_ui_mode(_mode);

if (mode == Mode.BACKUP){
gtk_show(bbox_backup);
gtk_hide(bbox_execute);
}
else{
gtk_hide(bbox_backup);
gtk_show(bbox_execute);
}
}

protected virtual void btn_add_files_clicked() {

log_debug("ScriptManager.btn_add_files_clicked()");
Expand Down

0 comments on commit f973278

Please sign in to comment.