Various fixes for Windows version
- new installer based on InnoSetup - add MIT license - produce WinExe output - other small fixes
This commit is contained in:
@ -9,7 +9,6 @@ namespace Photomator.Views;
|
||||
public partial class StatusDialog : Adw.Window {
|
||||
private readonly Adw.Application _application;
|
||||
private readonly Adw.ApplicationWindow _mainWindow;
|
||||
private readonly ViewStack _stack;
|
||||
private readonly ProgressBar _progress;
|
||||
|
||||
public StatusDialog(Adw.Application application, Adw.ApplicationWindow parent) : base() {
|
||||
@ -22,14 +21,8 @@ public partial class StatusDialog : Adw.Window {
|
||||
SetDeletable(true);
|
||||
SetDefaultSize(400, 500);
|
||||
|
||||
_stack = ViewStack.New();
|
||||
_stack.SetVexpand(true);
|
||||
|
||||
StatusPage pageStatus = InitPageProgress();
|
||||
_stack.AddNamed(pageStatus, "page-status");
|
||||
_stack.SetChildVisible(true);
|
||||
|
||||
SetContent(_stack);
|
||||
SetContent(pageStatus);
|
||||
}
|
||||
|
||||
public void Start() {
|
||||
@ -92,9 +85,7 @@ public partial class StatusDialog : Adw.Window {
|
||||
|
||||
public void Success(int number, string dest) {
|
||||
StatusPage pageSuccess = InitPageSuccess(number, dest);
|
||||
_stack.AddNamed(pageSuccess, "page-success");
|
||||
_stack.SetVisibleChildName("page-success");
|
||||
_stack.SetChildVisible(true);
|
||||
SetContent(pageSuccess);
|
||||
}
|
||||
|
||||
private StatusPage InitPagePartial(int number, string dest, ConvertError[] convertErrors) {
|
||||
@ -158,9 +149,7 @@ public partial class StatusDialog : Adw.Window {
|
||||
|
||||
public void Partial(int number, string dest, ConvertError[] convertErrors) {
|
||||
StatusPage pagePartial = InitPagePartial(number, dest, convertErrors);
|
||||
_stack.AddNamed(pagePartial, "page-partial");
|
||||
_stack.SetVisibleChildName("page-partial");
|
||||
_stack.SetChildVisible(true);
|
||||
SetContent(pagePartial);
|
||||
}
|
||||
|
||||
private StatusPage InitPageError(string error) {
|
||||
@ -208,8 +197,6 @@ public partial class StatusDialog : Adw.Window {
|
||||
|
||||
public void Error(string error) {
|
||||
StatusPage pageError = InitPageError(error);
|
||||
_stack.AddNamed(pageError, "page-error");
|
||||
_stack.SetVisibleChildName("page-error");
|
||||
_stack.SetChildVisible(true);
|
||||
SetContent(pageError);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user