Skip to content

Commit

Permalink
Merge branch 'main' into release-2.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ryonakano authored Jun 8, 2024
2 parents c6f8739 + c16daa8 commit 5b538dc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ It is recommended to assign a shortcut key to launch the app for daily use:

![assign shortcut](data/assign-shortcut.png)

You can also use the following command line options for debugging:
You can also use the following command line options:

```
-k, --keep-open Keep the app window open when unfocused
Expand Down
2 changes: 1 addition & 1 deletion src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
{
Expand Down
4 changes: 2 additions & 2 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -127,7 +127,7 @@ public class MainWindow : Gtk.ApplicationWindow {
hide ();
Timeout.add (250, () => {
destroy ();
return false;
return Source.REMOVE;
});
}
}
Expand Down

0 comments on commit 5b538dc

Please sign in to comment.