diff --git a/src/Application.vala b/src/Application.vala index 7ab6de7..17c2575 100644 --- a/src/Application.vala +++ b/src/Application.vala @@ -5,7 +5,7 @@ public class Application : Gtk.Application { public static bool keep_open = false; - public static string text = ""; + public static string? text = null; private OptionEntry[] options = { { diff --git a/src/MainWindow.vala b/src/MainWindow.vala index 7e22855..3869855 100644 --- a/src/MainWindow.vala +++ b/src/MainWindow.vala @@ -92,7 +92,7 @@ public class MainWindow : Gtk.ApplicationWindow { private async void update_result_label () { is_label_updated = true; - if (Application.text != "") { + if (Application.text != null) { // Set the text passed by the command line option if specified result_label.label = Application.text; } else {