Skip to content

Commit fff4664

Browse files
committed
fix: database button can not click #803
chore: allow smaller main window size.
1 parent 79f7eda commit fff4664

File tree

6 files changed

+16
-18
lines changed

6 files changed

+16
-18
lines changed

Ui/Resources/Languages/glossary.csv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ system_options_quick_launcher_hotkey;Hot key;快捷键;Klávesová zkratka;Hotke
104104
system_options_data_security_database;Database;数据库;Databáze;Datenbank;Base de données;Base de dados;データベース;資料庫;Base de datos;Baza danych;База данных
105105
Caution: Your data will be saved unencrypted!;Caution: Your data will be saved unencrypted!;导出数据将以明文显示,请妥善保管!;Varování: vaše data budou uložena nešifrovaná!;Achtung: Ihre Daten werden unverschlüsselt gespeichert;Mise en garde : vos données seront enregistrées non cryptées !;Atenção: Seus dados serão salvos sem criptografia!;注意: データは暗号化されずに保存されます;;;Uwaga: Twoje dane nie będą kodowane!;Внимание: ваши данные будут сохранены в незашифрованном виде!
106106
system_options_data_security_info_data_processing;Processing data. Do not close the app!;数据处理中,请勿关闭程序。;Zpracovávají se data. Nezavírejte aplikaci!;Datenverarbeitung, Programm bitte nicht schließen.;Traitement des données, ne fermez pas l'application.;Processando dados. Não feche o aplicativo!;データを処理しています。アプリを閉じないでください。;正在處理資料,請勿關閉應用程式。;Procesando datos. Non peches a aplicación!;Przetwarzanie danych. Nie zamykaj aplikacji!;Обработка данных. Не закрывайте приложение!
107-
system_options_data_security_error_can_not_open;Database: Permission denied for reading or the file is not a database or the file is an encrypted database!;数据库:所选文件已被占用或不是数据库或该数据库已被加密!;Databáze: odepřeno oprávnění pro čtení nebo soubor není databází, případně je šifrovaná!;Datei ist keine Datenbank oder Datei ist eine verschlüsselte Datenbank!;Base de données : autorisation de lecture refusée ou le fichier n'est pas une base de données ou le fichier est une base de données cryptée !;Banco de dados: Permissão negada para leitura. Ou o arquivo não é um banco de dados ou o arquivo é um banco de dados criptografado!;データベースを開けません;資料庫:選擇的檔案不是資料庫格式,或是正在被其他應用程式占用,或者資料已被加密!;Base de datos: Permiso denegado para ler o arquivo ou o arquivo non é una base de datos ou o arquivo está encriptado;Baza danych: Odmowa dostępu do odczytu lub plik nie jest bazą danych lub plik jest zaszyfrowany!;База данных: разрешение на чтение отклонено, либо файл не является базой данных, либо файл является зашифрованной базой данных!
108107
string_database_error_permission_denied;Database: Permission denied for reading! Please check your password of db or the file occupation.;数据库:没有足够的权限读取,或数据库已被占用!;Databáze: Odepřeno oprávnění pro čtení! Zkontrolujte správnost svého hesla nebo přítomnost souboru.;Datenbank: Berechtigung zum Lesen verweigert! Bitte überprüfen Sie Ihr Passwort der Datei.;Base de données : autorisation de lecture refusée! Veuillez vérifier le mot de passe du fichier.;Banco de dados: Permissão negada para leitura! Por favor, verifique sua senha de db ou o local do arquivo.;データベースの読み書きが許可されていません;資料庫:沒有存取權限,或者正在被其他應用程式占用!;Base de datos: Permiso denegado para ler! Por favor, comproba a chave de paso da base de datos;Baza danych: odmowa dostępu do odczytu! Sprawdź hasło pliku albo plik jest w użyciu.;База данных: доступ к чтению запрещен! Пожалуйста, проверьте свой пароль БД. Или файл может быть использован в другом приложении.
109108
server_card_operate_duplicate;Duplicate;创建副本;Zduplikovat;Duplizieren;Dupliquer;Duplicado;複製;建立副本;Duplicar;Duplikuj;Дублировать
110109
server_card_operate_copy_address;Copy hostname to clipboard;复制地址到剪贴板;Zkopírovat název stroje do schránky;Hostname in die Zwischenablage kopieren;Copier nom d'hôte dans le presse-papiers;Copie o nome do host para a área de transferência;ホスト名をクリップボードにコピー;複製主機名稱或網址到剪貼簿;Copiar o nome do host ao portapapeis;Kopiuj nazwę komputera do schowka;Скопировать имя хоста в буфер обмена

Ui/View/MainWindowView.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
Style="{StaticResource WindowChromeBaseBaseStyle}"
2020
Title="{x:Static Rm:Assert.APP_NAME}"
2121
Height="560" Width="900"
22-
MinWidth="700" MinHeight="500">
22+
MinWidth="300" MinHeight="300">
2323
<styles:WindowChromeBase.Resources>
2424
<ResourceDictionary>
2525
<RoutedUICommand x:Key="CommandFocusFilter" Text="Focus on filter" />

Ui/View/Settings/DataSource/DataSourceView.xaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@
172172
</DataGrid>
173173

174174

175-
<ScrollViewer>
176175
<StackPanel Orientation="Horizontal" VerticalAlignment="Top" Height="35" HorizontalAlignment="Right">
177176

178177
<!--SET DATA CHECK PERIOD-->
@@ -241,7 +240,5 @@
241240
</Hyperlink>
242241
</TextBlock>
243242
</StackPanel>
244-
245-
</ScrollViewer>
246243
</Grid>
247244
</UserControl>

Ui/View/Settings/DataSource/SqliteSettingViewModel.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ public RelayCommand CmdSelectDbPath
125125
{
126126
Path = oldPath;
127127
SimpleLogHelper.Warning(ee);
128-
MessageBoxHelper.ErrorAlert(IoC.Translate("system_options_data_security_error_can_not_open"), ownerViewModel: this);
128+
MsAppCenterHelper.Error(ee);
129+
MessageBoxHelper.ErrorAlert(ee.Message, ownerViewModel: this);
129130
}
130131
});
131132
});

Ui/View/Settings/ProtocolConfig/KittyRunnerSettings.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
</ComboBox>
8585

8686
<TextBlock Grid.Column="2" VerticalAlignment="Center" Margin="2 0">
87-
<Hyperlink NavigateUri="https://web.archive.org/web/20151122030926/http://putty.org.ru:80/themes/index.html" TextDecorations="{x:Null}" controls:HyperlinkHelper.IsOpenExternal="True">
87+
<Hyperlink NavigateUri="https://putty.org.ru/themes/" TextDecorations="{x:Null}" controls:HyperlinkHelper.IsOpenExternal="True">
8888
(?)
8989
</Hyperlink>
9090
</TextBlock>
@@ -104,7 +104,7 @@
104104
</ComboBox>
105105

106106
<TextBlock Grid.Column="2" VerticalAlignment="Center" Margin="2 0">
107-
<Hyperlink NavigateUri="https://web.archive.org/web/20151122030926/http://putty.org.ru:80/themes/index.html" TextDecorations="{x:Null}" controls:HyperlinkHelper.IsOpenExternal="True">
107+
<Hyperlink NavigateUri="https://putty.org.ru/themes/" TextDecorations="{x:Null}" controls:HyperlinkHelper.IsOpenExternal="True">
108108
(?)
109109
</Hyperlink>
110110
</TextBlock>

Ui/View/Settings/SettingsPageViewModel.cs

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -152,16 +152,17 @@ public RelayCommand CmdSaveAndGoBack
152152
return;
153153
}
154154

155-
foreach (var additionalSource in _dataSourceService.AdditionalSources)
156-
{
157-
var status = additionalSource.Value.Database_SelfCheck();
158-
if (status.Status != EnumDatabaseStatus.OK)
159-
{
160-
ShowPage(EnumMainWindowPage.SettingsData);
161-
MessageBoxHelper.ErrorAlert(status.GetErrorMessage);
162-
return;
163-
}
164-
}
155+
// do not check additional sources here, because team database may not be connected when one leaves working place.
156+
//foreach (var additionalSource in _dataSourceService.AdditionalSources)
157+
//{
158+
// var status = additionalSource.Value.Database_SelfCheck();
159+
// if (status.Status != EnumDatabaseStatus.OK)
160+
// {
161+
// ShowPage(EnumMainWindowPage.SettingsData);
162+
// MessageBoxHelper.ErrorAlert(status.GetErrorMessage);
163+
// return;
164+
// }
165+
//}
165166

166167
if (_configurationService.Launcher.LauncherEnabled != IoC.TryGet<LauncherWindowViewModel>()?.SetHotKey(_configurationService.Launcher.LauncherEnabled, _configurationService.Launcher.HotKeyModifiers, _configurationService.Launcher.HotKeyKey))
167168
{

0 commit comments

Comments
 (0)