Skip to content

Commit 8991127

Browse files
author
Lains
committed
3.4.9-3.3.3 - Fix mistakes in coding
1 parent ca259b6 commit 8991127

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

data/io.github.lainsce.Notejot.appdata.xml.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
</custom>
4646
<translation type="gettext">io.github.lainsce.Notejot</translation>
4747
<releases>
48-
<release version="3.4.8" date="2021-11-28">
48+
<release version="3.4.9" date="2021-11-28">
4949
<description>
5050
<p>Release: The Top 100 (3.3.3)</p>
5151
<ul>

src/Widgets/MoveToDialog.vala

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,17 @@
1919
namespace Notejot {
2020
[GtkTemplate (ui = "/io/github/lainsce/Notejot/move_to_dialog.ui")]
2121
public class Widgets.MoveToDialog : Adw.Window {
22+
public signal void clicked ();
2223
public unowned NoteContentView ncv = null;
2324
public NotebookViewModel nbview_model {get; set;}
2425
public NoteViewModel view_model {get; set;}
2526

26-
public signal void clicked ();
27+
[GtkChild]
28+
public unowned Gtk.Button cancel_button;
29+
[GtkChild]
30+
public unowned Gtk.Button remove_notebook_button;
31+
[GtkChild]
32+
public unowned Gtk.Button move_button;
2733

2834
Notebook? _notebook;
2935
public Notebook? notebook {
@@ -34,21 +40,10 @@ namespace Notejot {
3440

3541
_notebook = value;
3642

37-
if (_notebook.title != "") {
38-
move_button.sensitive = true;
39-
} else {
40-
move_button.sensitive = false;
41-
}
43+
move_button.sensitive = true;
4244
}
4345
}
4446

45-
[GtkChild]
46-
public unowned Gtk.Button cancel_button;
47-
[GtkChild]
48-
public unowned Gtk.Button remove_notebook_button;
49-
[GtkChild]
50-
public unowned Gtk.Button move_button;
51-
5247
public MoveToDialog (NoteContentView ncv, NotebookViewModel nbview_model, NoteViewModel view_model) {
5348
Object (
5449
nbview_model: nbview_model,

0 commit comments

Comments
 (0)