mirror of
https://github.com/tgeorgiadis/quiver-launcher.git
synced 2026-12-05 03:08:01 -05:00
Settings > General > Kiosk mode (or --kiosk for one session) starts Quiver fullscreen and limited to browsing and launching: settings, the App Catalog, adding, updating and exit controls are hidden, and library card menus keep only Launch. Ctrl+Alt+K unlocks the session and locks it again; an optional PIN, stored only as a hash, is asked to unlock. A locked kiosk never holds up logout or shutdown.
43 lines
1.1 KiB
C#
43 lines
1.1 KiB
C#
using Avalonia;
|
|
using Avalonia.Controls;
|
|
using Avalonia.Interactivity;
|
|
using QuiverLauncher.Services;
|
|
|
|
namespace QuiverLauncher;
|
|
|
|
public partial class MainWindow : Window
|
|
{
|
|
public MainView View => RootView;
|
|
|
|
public App _app
|
|
{
|
|
get => View._app;
|
|
set => View._app = value;
|
|
}
|
|
|
|
public MainWindow()
|
|
{
|
|
InitializeComponent();
|
|
DataContext = View;
|
|
App.CurrentHostedMainView = new WeakReference<MainView>(View);
|
|
|
|
_ = new DesktopHostController(this, View);
|
|
}
|
|
|
|
public void RestoreFromTray() => View.RestoreFromTray();
|
|
|
|
public void RequestExit() => View.RequestExit();
|
|
|
|
public void ApplyTraySettingsFromApp() => View.ApplyTraySettingsFromApp();
|
|
|
|
public Task RunUpdateCheckAsync(bool promptForReview, bool isManualCheck)
|
|
=> View.RunUpdateCheckAsync(promptForReview, isManualCheck);
|
|
|
|
public void OpenSettings() => View.OpenSettings();
|
|
|
|
public void OpenGitHubApiTokenSettings() => View.OpenGitHubApiTokenSettings();
|
|
|
|
public void OpenGitLabApiTokenSettings() => View.OpenGitLabApiTokenSettings();
|
|
|
|
}
|