Skip to content

Commit

Permalink
3.4.9-3.3.3 - Fix mistakes in coding
Browse files Browse the repository at this point in the history
  • Loading branch information
Lains committed Nov 29, 2021
1 parent ca259b6 commit 8991127
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion data/io.github.lainsce.Notejot.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</custom>
<translation type="gettext">io.github.lainsce.Notejot</translation>
<releases>
<release version="3.4.8" date="2021-11-28">
<release version="3.4.9" date="2021-11-28">
<description>
<p>Release: The Top 100 (3.3.3)</p>
<ul>
Expand Down
21 changes: 8 additions & 13 deletions src/Widgets/MoveToDialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@
namespace Notejot {
[GtkTemplate (ui = "/io/github/lainsce/Notejot/move_to_dialog.ui")]
public class Widgets.MoveToDialog : Adw.Window {
public signal void clicked ();
public unowned NoteContentView ncv = null;
public NotebookViewModel nbview_model {get; set;}
public NoteViewModel view_model {get; set;}

public signal void clicked ();
[GtkChild]
public unowned Gtk.Button cancel_button;
[GtkChild]
public unowned Gtk.Button remove_notebook_button;
[GtkChild]
public unowned Gtk.Button move_button;

Notebook? _notebook;
public Notebook? notebook {
Expand All @@ -34,21 +40,10 @@ namespace Notejot {

_notebook = value;

if (_notebook.title != "") {
move_button.sensitive = true;
} else {
move_button.sensitive = false;
}
move_button.sensitive = true;
}
}

[GtkChild]
public unowned Gtk.Button cancel_button;
[GtkChild]
public unowned Gtk.Button remove_notebook_button;
[GtkChild]
public unowned Gtk.Button move_button;

public MoveToDialog (NoteContentView ncv, NotebookViewModel nbview_model, NoteViewModel view_model) {
Object (
nbview_model: nbview_model,
Expand Down

0 comments on commit 8991127

Please sign in to comment.