diff --git a/NickvisionMoney.GNOME/Program.cs b/NickvisionMoney.GNOME/Program.cs index 2beff880..82f55f04 100644 --- a/NickvisionMoney.GNOME/Program.cs +++ b/NickvisionMoney.GNOME/Program.cs @@ -42,10 +42,11 @@ public Program(string[] args) _mainWindow = null; _mainWindowController = new MainWindowController(args); _mainWindowController.AppInfo.Changelog = - @"* Fixed an issue where the generated ids of new transactions were incorrect. - * Fixed an issue that caused sort to behave inconsistently. - * Fixed calendar not showing marks for transactions after pressing the ""Today"" button. - * Added more logging to help debug issues. + @"* Fixed an issue where the generated ids of new transactions were incorrect + * Fixed an issue that caused sort to behave inconsistently + * Fixed an issue where dragging and dropping an account file was not working + * Fixed calendar not showing marks for transactions after pressing the ""Today"" button + * Added more logging to help debug issues * Updated and added translations (Thanks to everyone on Weblate)!"; _application.OnActivate += OnActivate; if (File.Exists(Path.GetFullPath(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)) + "/org.nickvision.money.gresource")) diff --git a/NickvisionMoney.GNOME/Views/MainWindow.cs b/NickvisionMoney.GNOME/Views/MainWindow.cs index 0bd89cda..585ecf11 100644 --- a/NickvisionMoney.GNOME/Views/MainWindow.cs +++ b/NickvisionMoney.GNOME/Views/MainWindow.cs @@ -494,15 +494,12 @@ private void About(Gio.SimpleAction sender, EventArgs e) /// Gtk.DropTarget.DropSignalArgs private bool OnDrop(Gtk.DropTarget sender, Gtk.DropTarget.DropSignalArgs e) { - var obj = e.Value.GetObject(); - if (obj is Gio.FileHelper file) + var file = new Gio.FileHlper(e.Value.GetObject()!.Handle, false); + var path = file.GetPath() ?? ""; + if (File.Exists(path)) { - var path = file.GetPath() ?? ""; - if (File.Exists(path)) - { - _controller.AddAccountAsync(path).Wait(); - return true; - } + Task.Run(async () => await _controller.AddAccountAsync(path)); + return true; } return false; } diff --git a/NickvisionMoney.Shared/Controllers/MainWindowController.cs b/NickvisionMoney.Shared/Controllers/MainWindowController.cs index cf93f093..d173276e 100644 --- a/NickvisionMoney.Shared/Controllers/MainWindowController.cs +++ b/NickvisionMoney.Shared/Controllers/MainWindowController.cs @@ -86,7 +86,7 @@ public MainWindowController(string[] args) Directory.Delete($"{UserDirectories.Config}{Path.DirectorySeparatorChar}Nickvision{Path.DirectorySeparatorChar}{AppInfo.Name}", true); } Aura.Active.SetConfig("config"); - AppInfo.Version = "2023.12.0-next"; + AppInfo.Version = "2024.1.0-next"; AppInfo.ShortName = _("Denaro"); AppInfo.Description = _("Manage your personal finances"); AppInfo.SourceRepo = new Uri("https://github.com/NickvisionApps/Denaro"); diff --git a/NickvisionMoney.Shared/Linux/org.nickvision.money.metainfo.xml.in b/NickvisionMoney.Shared/Linux/org.nickvision.money.metainfo.xml.in index 8d7796fa..a096dca9 100644 --- a/NickvisionMoney.Shared/Linux/org.nickvision.money.metainfo.xml.in +++ b/NickvisionMoney.Shared/Linux/org.nickvision.money.metainfo.xml.in @@ -47,12 +47,13 @@ application/x-nmoney - + -

- Fixed an issue where the generated ids of new transactions were incorrect.

-

- Fixed an issue that caused sort to behave inconsistently.

-

- Fixed calendar not showing marks for transactions after pressing the "Today" button.

-

- Added more logging to help debug issues.

+

- Fixed an issue where the generated ids of new transactions were incorrect

+

- Fixed an issue that caused sort to behave inconsistently

+

- Fixed an issue where dragging and dropping an account file was not working

+

- Fixed calendar not showing marks for transactions after pressing the "Today" button

+

- Added more logging to help debug issues

- Updated translations (Thanks to everyone on Weblate)!