Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Nickvision.Application.GNOME/Views/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using Nickvision.Desktop.GNOME.Helpers;
using Nickvision.Desktop.Notifications;
using System;
using System.Diagnostics.CodeAnalysis;
using System.Linq;

namespace Nickvision.Application.GNOME.Views;
Expand All @@ -24,25 +25,26 @@
private bool _shown;

[Gtk.Connect("windowTitle")]
private Adw.WindowTitle? _windowTitle;

Check warning on line 28 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (arm64, macos-latest, osx-arm64)

Field 'MainWindow._windowTitle' is never assigned to, and will always have its default value null

Check warning on line 28 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (arm64, macos-latest, osx-arm64)

Field 'MainWindow._windowTitle' is never assigned to, and will always have its default value null

Check warning on line 28 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (x64, macos-15-intel, osx-x64)

Field 'MainWindow._windowTitle' is never assigned to, and will always have its default value null

Check warning on line 28 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (x64, macos-15-intel, osx-x64)

Field 'MainWindow._windowTitle' is never assigned to, and will always have its default value null
[Gtk.Connect("btnOpenFolder")]
private Gtk.Button? _btnOpenFolder;

Check warning on line 30 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (arm64, macos-latest, osx-arm64)

Field 'MainWindow._btnOpenFolder' is never assigned to, and will always have its default value null

Check warning on line 30 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (arm64, macos-latest, osx-arm64)

Field 'MainWindow._btnOpenFolder' is never assigned to, and will always have its default value null

Check warning on line 30 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (x64, macos-15-intel, osx-x64)

Field 'MainWindow._btnOpenFolder' is never assigned to, and will always have its default value null

Check warning on line 30 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (x64, macos-15-intel, osx-x64)

Field 'MainWindow._btnOpenFolder' is never assigned to, and will always have its default value null
[Gtk.Connect("btnCloseFolder")]
private Gtk.Button? _btnCloseFolder;

Check warning on line 32 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (arm64, macos-latest, osx-arm64)

Field 'MainWindow._btnCloseFolder' is never assigned to, and will always have its default value null

Check warning on line 32 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (arm64, macos-latest, osx-arm64)

Field 'MainWindow._btnCloseFolder' is never assigned to, and will always have its default value null

Check warning on line 32 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (x64, macos-15-intel, osx-x64)

Field 'MainWindow._btnCloseFolder' is never assigned to, and will always have its default value null

Check warning on line 32 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (x64, macos-15-intel, osx-x64)

Field 'MainWindow._btnCloseFolder' is never assigned to, and will always have its default value null
[Gtk.Connect("toastOverlay")]
private Adw.ToastOverlay? _toastOverlay;

Check warning on line 34 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (arm64, macos-latest, osx-arm64)

Field 'MainWindow._toastOverlay' is never assigned to, and will always have its default value null

Check warning on line 34 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (arm64, macos-latest, osx-arm64)

Field 'MainWindow._toastOverlay' is never assigned to, and will always have its default value null

Check warning on line 34 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (x64, macos-15-intel, osx-x64)

Field 'MainWindow._toastOverlay' is never assigned to, and will always have its default value null

Check warning on line 34 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (x64, macos-15-intel, osx-x64)

Field 'MainWindow._toastOverlay' is never assigned to, and will always have its default value null
[Gtk.Connect("viewStack")]
private Adw.ViewStack? _viewStack;

Check warning on line 36 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (arm64, macos-latest, osx-arm64)

Field 'MainWindow._viewStack' is never assigned to, and will always have its default value null

Check warning on line 36 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (arm64, macos-latest, osx-arm64)

Field 'MainWindow._viewStack' is never assigned to, and will always have its default value null

Check warning on line 36 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (x64, macos-15-intel, osx-x64)

Field 'MainWindow._viewStack' is never assigned to, and will always have its default value null

Check warning on line 36 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (x64, macos-15-intel, osx-x64)

Field 'MainWindow._viewStack' is never assigned to, and will always have its default value null
[Gtk.Connect("pageGreeting")]
private Adw.StatusPage? _pageGreeting;

Check warning on line 38 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (arm64, macos-latest, osx-arm64)

Field 'MainWindow._pageGreeting' is never assigned to, and will always have its default value null

Check warning on line 38 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (arm64, macos-latest, osx-arm64)

Field 'MainWindow._pageGreeting' is never assigned to, and will always have its default value null

Check warning on line 38 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (x64, macos-15-intel, osx-x64)

Field 'MainWindow._pageGreeting' is never assigned to, and will always have its default value null

Check warning on line 38 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (x64, macos-15-intel, osx-x64)

Field 'MainWindow._pageGreeting' is never assigned to, and will always have its default value null
[Gtk.Connect("pageFiles")]
private Adw.StatusPage? _pageFiles;

Check warning on line 40 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (arm64, macos-latest, osx-arm64)

Field 'MainWindow._pageFiles' is never assigned to, and will always have its default value null

Check warning on line 40 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (arm64, macos-latest, osx-arm64)

Field 'MainWindow._pageFiles' is never assigned to, and will always have its default value null

Check warning on line 40 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (x64, macos-15-intel, osx-x64)

Field 'MainWindow._pageFiles' is never assigned to, and will always have its default value null

Check warning on line 40 in Nickvision.Application.GNOME/Views/MainWindow.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (x64, macos-15-intel, osx-x64)

Field 'MainWindow._pageFiles' is never assigned to, and will always have its default value null

public MainWindow(IServiceProvider serviceProvider, MainWindowController controller, AppInfo appInfo, IEventsService eventsService, ITranslationService translationService, IGtkBuilderFactory builderFactory) : this(serviceProvider, controller, appInfo, eventsService, translationService, builderFactory.Create("MainWindow"))
{

}

[DynamicDependency(DynamicallyAccessedMemberTypes.NonPublicFields, typeof(MainWindow))]
private MainWindow(IServiceProvider serviceProvider, MainWindowController controller, AppInfo appInfo, IEventsService eventsService, ITranslationService translationService, Gtk.Builder builder) : base(new Adw.Internal.ApplicationWindowHandle(builder.GetPointer("root"), false))
{
var application = serviceProvider.GetRequiredService<Adw.Application>();
Expand Down
2 changes: 2 additions & 0 deletions Nickvision.Application.GNOME/Views/PreferencesDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using Nickvision.Application.Shared.Models;
using Nickvision.Desktop.GNOME.Helpers;
using System;
using System.Diagnostics.CodeAnalysis;

namespace Nickvision.Application.GNOME.Views;

Expand All @@ -11,15 +12,16 @@
private readonly Gtk.Builder _builder;

[Gtk.Connect("themeRow")]
private Adw.ComboRow? _themeRow;

Check warning on line 15 in Nickvision.Application.GNOME/Views/PreferencesDialog.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (arm64, macos-latest, osx-arm64)

Field 'PreferencesDialog._themeRow' is never assigned to, and will always have its default value null

Check warning on line 15 in Nickvision.Application.GNOME/Views/PreferencesDialog.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (arm64, macos-latest, osx-arm64)

Field 'PreferencesDialog._themeRow' is never assigned to, and will always have its default value null

Check warning on line 15 in Nickvision.Application.GNOME/Views/PreferencesDialog.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (x64, macos-15-intel, osx-x64)

Field 'PreferencesDialog._themeRow' is never assigned to, and will always have its default value null

Check warning on line 15 in Nickvision.Application.GNOME/Views/PreferencesDialog.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (x64, macos-15-intel, osx-x64)

Field 'PreferencesDialog._themeRow' is never assigned to, and will always have its default value null
[Gtk.Connect("languageRow")]
private Adw.ComboRow? _languageRow;

Check warning on line 17 in Nickvision.Application.GNOME/Views/PreferencesDialog.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (arm64, macos-latest, osx-arm64)

Field 'PreferencesDialog._languageRow' is never assigned to, and will always have its default value null

Check warning on line 17 in Nickvision.Application.GNOME/Views/PreferencesDialog.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (arm64, macos-latest, osx-arm64)

Field 'PreferencesDialog._languageRow' is never assigned to, and will always have its default value null

Check warning on line 17 in Nickvision.Application.GNOME/Views/PreferencesDialog.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (x64, macos-15-intel, osx-x64)

Field 'PreferencesDialog._languageRow' is never assigned to, and will always have its default value null

Check warning on line 17 in Nickvision.Application.GNOME/Views/PreferencesDialog.cs

View workflow job for this annotation

GitHub Actions / GNOME on macOS (x64, macos-15-intel, osx-x64)

Field 'PreferencesDialog._languageRow' is never assigned to, and will always have its default value null

public PreferencesDialog(PreferencesViewController controller, IGtkBuilderFactory builderFactory) : this(controller, builderFactory.Create("PreferencesDialog"))
{

}

[DynamicDependency(DynamicallyAccessedMemberTypes.NonPublicFields, typeof(PreferencesDialog))]
private PreferencesDialog(PreferencesViewController controller, Gtk.Builder builder) : base(new Adw.Internal.PreferencesDialogHandle(builder.GetPointer("root"), false))
{
_controller = controller;
Expand Down
Loading