mirror of
https://github.com/claunia/apprepodbmgr.git
synced 2025-12-16 19:24:42 +00:00
Detect and check unar and lsar runnability.
This commit is contained in:
@@ -26,10 +26,10 @@
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
//
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using Gtk;
|
||||
using osrepodbmgr;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
@@ -48,6 +48,9 @@ public partial class MainWindow : Window
|
||||
|
||||
Core.InitDB();
|
||||
|
||||
MainClass.UnarChangeStatus += UnarChangeStatus;
|
||||
MainClass.CheckUnar();
|
||||
|
||||
CellRendererText filenameCell = new CellRendererText();
|
||||
CellRendererText hashCell = new CellRendererText();
|
||||
CellRendererToggle dbCell = new CellRendererToggle();
|
||||
@@ -64,6 +67,14 @@ public partial class MainWindow : Window
|
||||
treeFiles.AppendColumn(dbColumn);
|
||||
}
|
||||
|
||||
void UnarChangeStatus()
|
||||
{
|
||||
Application.Invoke(delegate
|
||||
{
|
||||
btnArchive.Sensitive = MainClass.unarUsable;
|
||||
});
|
||||
}
|
||||
|
||||
protected void OnDeleteEvent(object sender, DeleteEventArgs a)
|
||||
{
|
||||
if(btnStop.Visible)
|
||||
|
||||
Reference in New Issue
Block a user